mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fix: failing test on node v6
This commit is contained in:
parent
a5502e6689
commit
e6f9f28830
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user