Skip to content

Commit

Permalink
Added mocha as optional dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
beatfactor committed Apr 23, 2019
1 parent 123182c commit 26a0c40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/runner/runner.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const TestSource = require('./test-source.js');
const Walker = require('./folder-walk.js');
const DefaultRunner = require('./test-runners/default.js');
const MochaRunner = require('./test-runners/mocha.js');

class Runner {
static get DEFAULT_RUNNER() {
Expand Down Expand Up @@ -87,9 +86,11 @@ class Runner {
return new DefaultRunner(settings, argv, addtOpts);

case Runner.MOCHA_RUNNER:
const MochaRunner = require('./test-runners/mocha.js');

return new MochaRunner(settings, argv, addtOpts);
}
}
}

module.exports = Runner;
module.exports = Runner;
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@
"coveralls": "^3.0.0",
"eslint": "^5.2.0",
"js-yaml": "^3.13.1",
"mocha": "^5.2.0",
"mock-spawn": "^0.2.1",
"mockery": "~2.1.0",
"nock": "^10.0.6",
"nyc": "^14.0.0"
"nyc": "^14.0.0",
"mocha": "^5.2.0"
},
"optionalDependencies": {
"mocha": "^5.2.0"
},
"bin": {
"nightwatch": "./bin/nightwatch"
Expand Down

0 comments on commit 26a0c40

Please sign in to comment.