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
importtestfrom'ava'test('should user loader',asynct=>{constanyfile=awaitimport('./anyfile.js')t.is(anyfile.default,'fromloader')})
ava --node-arguments="--loader=./anyloader.js"(node:59341) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time(Use `node --trace-warnings ...` to show where the warning was created) ✖ should user loader Promise returned by test never resolved ─ should user loader Error: Promise returned by test never resolved ─ 1 test failed
It might be caused by an upstream issue reported earlier this evening nodejs/node#47614, however opening an issue here may be useful because the error manifests itself in a special way with ava, indicating a possibly separate issue.
The text was updated successfully, but these errors were encountered:
Checking in here to notify about an issue using ava with node v20 and --loader. There is a problem demonstrated at the repo here: https://github.com/iambumblehead/nodejs-v20-loader-ava-noop; using
npm test
from that repo with node v20 causes the test to incorrectly fail.Essentially ava fails when used with --loader
anyloader.js
anyfile.spec.js
It might be caused by an upstream issue reported earlier this evening nodejs/node#47614, however opening an issue here may be useful because the error manifests itself in a special way with ava, indicating a possibly separate issue.
The text was updated successfully, but these errors were encountered: