Skip to content

Commit

Permalink
fix: add missing custom require (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 18, 2022
1 parent d21e5f4 commit 1348220
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cmd/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ class TestCommand extends Command {

// collect require
const requireArr = execArgvObj.require;
if (Array.isArray(testArgv.require)) {
for (const r of testArgv.require) {
requireArr.push(r);
}
}

// clean mocha stack, inspired by https://github.com/rstacruz/mocha-clean
// [mocha built-in](https://github.com/mochajs/mocha/blob/master/lib/utils.js#L738) don't work with `[npminstall](https://github.com/cnpm/npminstall)`, so we will override it.
Expand Down

0 comments on commit 1348220

Please sign in to comment.