Testing · Senior · Question 75 of 75
What does vitest --changed (or Jest --changedSince) give a large repository, and what is its limit?
- ✓Correct answer: Runs only tests affected by changed files for fast feedback; a full run is still needed before merge or nightly, since the module graph can miss config or data dependencies
- 2Runs only tests that failed last time
- 3Guarantees the same result as a full run
Explanation
Affected-test selection relies on the import graph; changes to configs, environment or files loaded at runtime aren't always detected.