You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// const Mocha = require("mocha");constMocha=require("mocha-parallel-tests").default;const{ expect }=require("chai");constmochaInstance=newMocha();mochaInstance.timeout(90000);constsuiteInstance=Mocha.Suite.create(mochaInstance.suite,"Test Suite");suiteInstance.addTest(newMocha.Test(`Testing 1 is not 2`,asyncfunction(){expect(1).to.be.equal(2);}));mochaInstance.run(amountFailures=>{process.exitCode=amountFailures>0;});
The output is (empty lines):
When using require("mocha") instead it returns fine:
Test Suite
1) Testing 1 is not 2
0 passing (12ms)
1 failing
1) Test Suite
Testing 1 is not 2:
AssertionError: expected 1 to equal 2
+ expected - actual
-1
+2
at Context.<anonymous> (bug.js:12:21)
at processImmediate (internal/timers.js:439:21)
The text was updated successfully, but these errors were encountered:
adriaandotcom
changed the title
Silelently failing when using Mocha Mocha.Suite.create
Silelently failing when using Mocha.Suite.create
Feb 18, 2020
adriaandotcom
changed the title
Silelently failing when using Mocha.Suite.create
ilently failing when using Mocha.Suite.create
Feb 18, 2020
adriaandotcom
changed the title
ilently failing when using Mocha.Suite.create
Silently failing when using Mocha.Suite.create
Feb 18, 2020
When using this code:
The output is (empty lines):
When using
require("mocha")
instead it returns fine:The text was updated successfully, but these errors were encountered: