Best setup for using with Jest? #1507
Unanswered
leepowellnbs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm after some insight into the best way to setup MSW with Jest? Currently we are trialling its usage and only have it in about a dozen tests. However, some of these tests randomly fail when running the entire test suite (they pass individually) - so I'm wondering if we've set it up wrong. I'm thinking it's our MSW setup as it's only these tests that fail.
A few things to note:
http://MOCK_ENDPOINT
- guessing this is where some of the problem is?Any insight would be very helpful into why these tests randomly fail - MSW seems the only common thing between them.
Beta Was this translation helpful? Give feedback.
All reactions