Thanks a lot for this awesome module!
I'm trying to run my jest test with esm it's failing with this error:

My package.json
{
"dependencies": {
"esm": "^3.0.34"
},
"scripts": {
"start": "node -r esm index.js",
"test": "node -r esm node_modules/.bin/jest"
},
"esm": {
"mode": "auto",
"await": true,
"cjs": {
"vars": true,
"interop": true,
"namedExports": true
}
},
"devDependencies": {
"jest": "^22.4.3"
}
}
index.js
import modulex from './modulex';
console.log(modulex);
modulex.js
export default {
name: 'im module x'
};
test.js
import modulex from './modulex';
test('Test', () => {
console.log(modulex);
});
When i run yarn start # or npm start everything works without problems, so i guess the configuration it's fine.
@gbahamondezc jest is not supported yet, but @jdalton is working on it.
you can follow up here: https://github.com/facebook/jest/issues/4842
@dnalborczyk ok, thanks 馃憤
Most helpful comment
@gbahamondezc jest is not supported yet, but @jdalton is working on it.
you can follow up here: https://github.com/facebook/jest/issues/4842