Callback not being executed in server.boundary with jest and react testing library #2366
Open
4 tasks done
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
v20.12.1
Reproduction repository
https://github.com/kmmccafferty96/msw-server-boundary-issue-reproduction
Reproduction steps
npm install
npm test
Note that both tests pass even though the second should not. Also to note, the first writes to the console but the second does not.
Current behavior
When using jest with react-testing-library, the callback supplied to
server.boundary()
is seemingly not executed and tests pass no matter what.Expected behavior
The callback should be executed and tests should be ran properly.
The text was updated successfully, but these errors were encountered: