Skip to content

Global setup/teardown functions for all tests in watch mode #6719

Answered by sheremet-va
colinlienard asked this question in Q&A
Discussion options

You must be logged in to vote

Currently the only way to run a custom code when Vitest triggers a rerun is with a custom reporter's onWatcherRerun. We are planning to add the same hook to the global setup in the future: #6417 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@colinlienard
Comment options

Answer selected by colinlienard
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