-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(vitest): allow per-file and per-worker fixtures #7704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(vitest): allow per-file and per-worker fixtures #7704
Conversation
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@AriPerkkio can you help me with the worker teardown? I cannot make it work at all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beforeExitis not called, and callingcleanupbeforerecycleWorkerskills Vitest process 🤔
Is there a test that can be used to reproduce this?
Here is a test file:
|
Description
Closes #6157
Test plan:
threadsvmThreads, teardown is called by the same rulesPlease don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.