Skip to content

Commit

Permalink
Add delay option (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
joefiorini authored and inukshuk committed Feb 28, 2018
1 parent 368c9c9 commit 22c7cca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions args.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function parse (argv) {
.option('--recursive', 'include sub directories')
.option('--renderer', 'run tests in renderer process')
.option('--preload <name>', 'preload the given script in renderer process', modules, [])
.option('--delay', 'wait for async suite definition')
.option('--require-main <name>', 'load the given script in main process before executing tests', modules, [])

module.paths.push(cwd, join(cwd, 'node_modules'))
Expand Down
1 change: 1 addition & 0 deletions mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function createFromArgs (args) {
if (args.fgrep) mocha.grep(args.fgrep)
if (args.invert) mocha.invert()
if (args.checkLeaks) mocha.checkLeaks()
if (args.delay) mocha.delay()
mocha.globals(args.globals)

// --no-colors
Expand Down

0 comments on commit 22c7cca

Please sign in to comment.