Stub an export from a native ES Module without babel
I’m using AVA + sinon to build my unit test. Since I need ES6 modules and I don’t like babel, I’m using mjs files all over my project, including the test files. I use “–experimental-modules” argument to start my project and I use “esm” package in the test. The following is my ava config and the test code.