fix(coverage): coverage report was failing due to wrong path in test

This commit is contained in:
Gareth Jones 2018-01-19 08:41:16 +11:00
parent 822ca2e385
commit 069d94aad6

View File

@ -255,7 +255,7 @@ test('log4js configuration validation', (batch) => {
sandboxConfig.requires[`${mainPath}/cheese`] = testAppender('correct');
// add this one, because when we're running coverage the main path is a bit different
sandboxConfig.requires[
`${path.join(mainPath, '../../node_modules/tap/node_modules/nyc/bin/cheese')}`
`${path.join(mainPath, '../../node_modules/nyc/bin/cheese')}`
] = testAppender('correct');
const SandboxedConfiguration = sandbox.require('../../lib/configuration', sandboxConfig);