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
I'm not familiar with that shim. AVA 3 has special handling for the esm shim and that has been removed. You'll have to register it as a CJS loader somehow.
The esm-wallaby lib is just a fork of the esm module but updated to support optional chaining (elvis operator). It works in ava 3.15.0, but fails with that error when updated to ava 4.0.1. I'm assuming this is due to removing support of esm?
Correct. We used to recognize a symbol from the esm package and use it for subsequent requires, but that has been removed. I imagine there's a way to make it work like say @babel/register but I haven't looked closely.
@tcollinsworth AVA 4 works just fine with CJS. Being a Node.js test runner, for ESM support we rely on Node.js' standard behavior.
Originally posted by @novemberborn in #2293 (comment)
@novemberborn Upgrading ava from 3.15.0 to 4.0.1 with esm-wallaby shim for optional-chaining support throws:
The text was updated successfully, but these errors were encountered: