Vitest Browser mode timing out with lots of tests #6536
tylerbmyers
started this conversation in
Feedback
Replies: 1 comment 3 replies
-
Is it your own MSW instance? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to use Vitest workspaces to migrate tests to Vitest Browser alongside vitest-browser-react. I am seeing some weird behavior, so I wanted to start a discussion while I work on creating a reproduction (can't post my private repo here where I am seeing the issue).
Some numbers for context:
Some things I am noticing:
expect.element
right after rendering the component MSW takes a really long time to run. If I do something like click or hover on an element instead, it returns almost instantly. This leads me to wonder if something with vitest's implementation of module mocking with MSW is interfering with the api mocks. I have not been able to dig into it too deeply yet, but wanted to flag this observation.I will update this discussion with more details and a reproduction if I am able to create one.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions