Skip to content

Commit

Permalink
mocha --opts => --config
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 18, 2020
1 parent daa2573 commit 3a9b39d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"karma-chrome-launcher": "3.1.0",
"karma-mocha": "2.0.1",
"minimist": "^1.2.0",
"mocha": "^6.1.2",
"mocha": "^8.2.1",
"mocha-slow-reporter": "^*",
"node-version-check": "^2.2.0",
"nyc": "^15.0.0",
Expand Down
10 changes: 6 additions & 4 deletions test/external.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ if (typeof process === 'object') {
return expect.promise(function (run) {
childProcess.execFile(
pathModule.resolve(basePath, 'node_modules', '.bin', 'mocha'),
['--opts', pathModule.resolve(__dirname, 'mocha.opts')].concat(
subject.map(function (fileName) {
[
'--config',
pathModule.resolve(__dirname, '..', '.mocharc.json'),
...subject.map(function (fileName) {
return pathModule.resolve(
externaltestsDir,
`${fileName}.spec.js`
);
})
),
}),
],
{
cwd: basePath,
env: extend({}, process.env, env || {}),
Expand Down

0 comments on commit 3a9b39d

Please sign in to comment.