mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fix(coverage): coverage report was failing due to wrong path in test
This commit is contained in:
parent
822ca2e385
commit
069d94aad6
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user