From e6f9f2883050cb04fc838e42aed720cb473f43c1 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 2 May 2019 08:35:26 +1000 Subject: [PATCH] fix: failing test on node v6 --- test/tap/configuration-validation-test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tap/configuration-validation-test.js b/test/tap/configuration-validation-test.js index 6a0a6aa..39c7789 100644 --- a/test/tap/configuration-validation-test.js +++ b/test/tap/configuration-validation-test.js @@ -297,6 +297,11 @@ test('log4js configuration validation', (batch) => { sandboxConfig.requires[ `${path.join(mainPath, '../../node_modules/nyc/bin/cheese')}` ] = testAppender('correct', result); + // in node v6, there's an extra layer of node modules for some reason, so add this one to work around it + sandboxConfig.requires[ + `${path.join(mainPath, '../../node_modules/tap/node_modules/nyc/bin/cheese')}` + ] = testAppender('correct', result); + const sandboxedLog4js = sandbox.require('../../lib/log4js', sandboxConfig); sandboxedLog4js.configure({