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
can I use rewiremock in native node? await import("rewiremock"); in the repl throws the error in the title. I am not using any transpiler, simply using native node repl
The text was updated successfully, but these errors were encountered:
Well, yes. It's not native module compatible as it missing a part("loader") required to modify ESM behaviour and make them mockable. Basically, the requirement is to implement an old module system inside new module system.
Not something I can afford doing 😢
can I use rewiremock in native node?
await import("rewiremock");
in the repl throws the error in the title. I am not using any transpiler, simply using native node replThe text was updated successfully, but these errors were encountered: