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({