Cannot find module 'msw/node' in Jest test after upgrading to v2 #1787
Labels
bug
Something isn't working
needs:triage
Issues that have not been investigated yet.
scope:node
Related to MSW running in Node
Prerequisites
Environment check
msw
versionNode.js version
v18.14.2
Reproduction repository
https://github.com/mbaumanndev/msw-issue-repro
Reproduction steps
On the repo:
Importing
msw/node
cause an error in Jest.Note that this is an extract from my dev env on a project where it was working with msw 1.3.2 and where I followed the upgrade guide.
Current behavior
Expected behavior
The test should pass since Jest should be able to import
msw/node
The text was updated successfully, but these errors were encountered: