msw 2.13+ fails to start up on Jest #2701
GarrisonD
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
Just wondering: does it still make sense to produce a CJS build for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's a follow-up for #2698
Unfortunately this didn't help me:
I had to add
@babel/plugin-transform-modules-commonjsto the dev dependencies and specify it in the config. So the changes to my Jest config looks like this:"transform": { - "^.+\\.(t|j)s$": "ts-jest" + "^.+\\.(t|j)s$": "ts-jest", + "^.+\\.mjs$": [ + "babel-jest", + { "plugins": ["@babel/plugin-transform-modules-commonjs"] } ] },Beta Was this translation helpful? Give feedback.
All reactions