Skip to content

Instantly share code, notes, and snippets.

@opatut
Created November 30, 2015 11:43
Show Gist options
  • Save opatut/7fdaf883a12f6dd0e6bf to your computer and use it in GitHub Desktop.
Save opatut/7fdaf883a12f6dd0e6bf to your computer and use it in GitHub Desktop.
Mocha: Cannot combine --delay and --watch and --require hook
// setup.js
console.log('starting timeout');
setTimeout(function() {
console.log('timeout triggered, running suite');
run();
}, 1000);
// 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