Testing · Junior · Question 26 of 78
What does watch mode (vitest / jest --watch) do?
- ✓Correct answer: Reruns tests related to changed files on every save
- 2Records a video of the tests
- 3Watches production for errors
Explanation
Vitest starts in watch mode by default in a terminal and uses Vite's module graph to rerun only affected tests.