Running tests using the globaly installed ava@4.x
produces this error:
$ ava test.js
Uncaught exception in test.js
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert(refs.runnerChain)
This is not a VSCode issue, but this thread was useful and inspired the use of npx
.
Fix: Instead of the globally installed version of ava
, use npx ava test.js
to run test.
$ npx ava test.js
✔ mytest › some test (10ms)
demo repo https://github.com/todgru/ava-js-assertion-error-refs.runnerChain