-
-
Notifications
You must be signed in to change notification settings - Fork 598
Open
Labels
bugSomething isn't workingSomething isn't workingneeds:triageIssues that have not been investigated yet.Issues that have not been investigated yet.scope:nodeRelated to MSW running in NodeRelated to MSW running in Node
Description
Prerequisites
- I confirm my issue is not in the opened issues
- I confirm the Frequently Asked Questions didn't contain the answer to my issue
Environment check
- I'm using the latest
mswversion - I'm using Node.js version 14 or higher
Node.js version
18.16.0
Reproduction repository
https://github.com/ofekdeitch-oligo/msw-testcontainers-bug
Reproduction steps
run:
nvm usenpm installnpm run test
Notice that there are 2 tests running:
- Without MSW
- With MSW
Test (1) passes, but test (2) fails.
I've also added the method bypassRoutes that creates routes using req.passthrough(), but test (2) continues to fail.
Current behavior
When setting up an MSW server, the testcontainers library fails to create a Kafka container.
Expected behavior
MSW would bypass the requests that testcontainers relies on, so that a Kafka container would be created successfully.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds:triageIssues that have not been investigated yet.Issues that have not been investigated yet.scope:nodeRelated to MSW running in NodeRelated to MSW running in Node