Error [ERR_TEST_FAILURE]: should be a number: expected 'hello' to be a number
at async Promise.all (index 0)
Caused by: AssertionError: should be a number: expected 'hello' to be a number
at TestContext.<anonymous>
at Test.runInAsyncScope (node:async_hooks:206:9)
at Test.run (node:internal/test_runner/test:865:25)
at Suite.processPendingSubtests (node:internal/test_runner/test:574:18)
at Test.postRun (node:internal/test_runner/test:964:19)
at Test.run (node:internal/test_runner/test:907:12)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:1226:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:574:7)
Compared to mocha:
AssertionError: should be a number: expected 'hello' to be a number
at Context.<anonymous>
at process.processImmediate (node:internal/timers:483:21)
I guess the ERR_TEST_FAILURE should be unwrapped. There are a number of extra stack frames too, but I'm not sure if that's important.
A failing test is currently displayed like this:
Compared to mocha:
I guess the
ERR_TEST_FAILURE
should be unwrapped. There are a number of extra stack frames too, but I'm not sure if that's important.