Skip to content
Discussion options

You must be logged in to vote

We use it in the gcloud module:

const server = setupServer();
beforeAll(() => {
server.listen({
onUnhandledRequest: "bypass",
});
});
beforeEach(() => {
server.resetHandlers();
});
afterAll(() => {
server.close();
});

There used to be an issue with an older version of msw not playing well with the Docker socket, but that was fixed a few months back. If you update msw/Testcontainers I reckon everything is working.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kieran-osgood
Comment options

Answer selected by cristianrgreco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants