Skip to content

Commit

Permalink
fixed variable in runMocha
Browse files Browse the repository at this point in the history
  • Loading branch information
stoicchild8910 committed Aug 30, 2020
1 parent f5c9375 commit 0eb8e83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cli/run-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,17 @@ const parallelRun = async (mocha, options, fileCollectParams) => {
* @returns {Promise<Runner>}
*/
exports.runMocha = async (mocha, options) => {
let {
const {
watch = false,
extension = [],
ignore = [],
file = [],
parallel = false,
recursive = false,
sort = false,
spec = [],
parallelForce = false
} = options;
let {parallel} = options;

const fileCollectParams = {
ignore,
Expand All @@ -223,6 +223,7 @@ exports.runMocha = async (mocha, options) => {
parallel = false;
}
}

let run;
if (watch) {
run = parallel ? watchParallelRun : watchRun;
Expand Down
1 change: 1 addition & 0 deletions lib/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ exports.Test = require('./test');
* @param {number|string} [options.timeout] - Timeout threshold value.
* @param {string} [options.ui] - Interface name.
* @param {boolean} [options.parallel] - Run jobs in parallel
* @param {boolean} [options.parallelForce] - Run jobs in parallel
* @param {number} [options.jobs] - Max number of worker processes for parallel runs
* @param {MochaRootHookObject} [options.rootHooks] - Hooks to bootstrap the root
* suite with
Expand Down

0 comments on commit 0eb8e83

Please sign in to comment.