Open kmmccafferty96 opened 1 day ago
msw
v20.12.1
https://github.com/kmmccafferty96/msw-server-boundary-issue-reproduction
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.
When using jest with react-testing-library, the callback supplied to server.boundary() is seemingly not executed and tests pass no matter what.
server.boundary()
The callback should be executed and tests should be ran properly.
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.