Actually yes! From your βimportβ syntax, I assume you are using ECMAScript Modules? Could you maybe elaborate on specifically what all you do that allowed you to use jest with .mjs files?
Ah ok, I see now. And yes, going to babelβs documentation was much more helpful than all the time Iβve spent on Jest documentation.
So babel is just handling everything, then. Thrilled to get the quick and helpful response, but the answer is a total bummer. I kinda figured Jest would be almost fully converted by now
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for this fantastic post Manuel! Was super easy to follow along
Glad you found this useful! is it there any extra area you'd like to read about ?
Actually yes! From your βimportβ syntax, I assume you are using ECMAScript Modules? Could you maybe elaborate on specifically what all you do that allowed you to use jest with .mjs files?
Sure!
who is in charge of reading cool-js and getting boring-js on return.
In particular, you may find the babeljs.io/docs/en/babel-preset-en... useful
Ah ok, I see now. And yes, going to babelβs documentation was much more helpful than all the time Iβve spent on Jest documentation.
So babel is just handling everything, then. Thrilled to get the quick and helpful response, but the answer is a total bummer. I kinda figured Jest would be almost fully converted by now