Testing · Senior · Question 23 of 75
Why should a CI test run use --ci (Jest) or equivalent settings?
- ✓Correct answer: Missing snapshots fail instead of being written silently, so a test never “passes” by creating its own reference
- 2It enables watch mode
- 3It turns off assertions
Explanation
In Vitest, CI is detected automatically: new snapshots aren't written and .only fails the run.