Created
November 30, 2015 11:43
-
-
Save opatut/7fdaf883a12f6dd0e6bf to your computer and use it in GitHub Desktop.
Mocha: Cannot combine --delay and --watch and --require hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// setup.js | |
console.log('starting timeout'); | |
setTimeout(function() { | |
console.log('timeout triggered, running suite'); | |
run(); | |
}, 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test/index.js | |
describe('foo', function () { | |
it('bar', function () { | |
console.log('running foo:bar'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment