Skip to content
#

devtools

Here are 795 public repositories matching this topic...

msw
eddiemoore
eddiemoore commented Aug 10, 2021

Describe the bug

I'm using .on('request:match', (req) => {}) in tests to make sure variables are getting send correctly in the request, however is seems that if I have more than 1 across different tests then they start to fail. I have this in my setupTests file:

beforeAll(() => server.listen({ onUnhandledRequest: 'error' }))
afterAll(() => server.close())
afterEach(() => se

Improve this page

Add a description, image, and links to the devtools topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the devtools topic, visit your repo's landing page and select "manage topics."

Learn more