Skip to content

Commit 2afb9f6

Browse files
boneskullcraigtaub
authored andcommitted
remove cruft from wallaby config
also increase default timeout Ref: #4198
1 parent 27aeb80 commit 2afb9f6

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.wallaby.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = () => {
3636
// running mocha instance is not the same as mocha under test,
3737
// running mocha is the project's source code mocha, mocha under test is instrumented version of the source code
3838
const runningMocha = wallaby.testFramework;
39-
runningMocha.timeout(200);
39+
runningMocha.timeout(1000);
4040
// to expose it/describe etc. on the mocha under test
4141
const MochaUnderTest = require('./');
4242
const mochaUnderTest = new MochaUnderTest();
@@ -46,18 +46,6 @@ module.exports = () => {
4646
'',
4747
mochaUnderTest
4848
);
49-
// to make test/node-unit/color.spec.js pass, we need to run mocha in the project's folder context
50-
const childProcess = require('child_process');
51-
const execFile = childProcess.execFile;
52-
childProcess.execFile = function() {
53-
let opts = arguments[2];
54-
if (typeof opts === 'function') {
55-
opts = {};
56-
Array.prototype.splice.call(arguments, 2, 0, opts);
57-
}
58-
opts.cwd = wallaby.localProjectDir;
59-
return execFile.apply(this, arguments);
60-
};
6149
require('./test/setup');
6250
},
6351
debug: true

0 commit comments

Comments
 (0)