mocha-parallel-tests
mocha-parallel-tests copied to clipboard
cli doesn't appear to work the same way as mocha
with mocha
Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha --require "source-map-support/register" --require "ts-node/register" --require "esm" --extension ts
value
1) simple property
0 passing (60ms)
1 failing
1) value
simple property:
AssertionError [ERR_ASSERTION]: Expected 'Hello World' to equal 'hello World'.
at Object.fail (node_modules/assertthat/build/lib/fail.js:11:22)
at Object.equalTo (node_modules/assertthat/build/lib/constraints/equalTo.js:10:16)
at Context.<anonymous> (test/inject.spec.ts:17:39)
at processImmediate (internal/timers.js:439:21)
at process.topLevelDomainCallback (domain.js:130:23)
with mocha-parallel-tests, exact same params, also tried with --recurse test/
Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha-parallel-tests --require "source-map-support/register" --require "ts-node/register" --require "esm" --extension ts
No test files found
now oddly
Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha-parallel-tests --require "source-map-support/register" --require "ts-node/register" --require "esm" --extension ts test/inject.spec.ts
value
1) simple property
0 passing (7s)
1 failing
1)
value
simple property:
AssertionError [ERR_ASSERTION]: Expected 'Hello World' to equal 'hello World'.
at Object.fail (node_modules/assertthat/build/lib/fail.js:11:22)
at Object.equalTo (node_modules/assertthat/build/lib/constraints/equalTo.js:10:16)
at Context.<anonymous> (test/inject.spec.ts:17:39)
Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha --version && npx mocha-parallel-tests --version
7.1.1
2.3.0
what gives?