npx @buildinternet/releases get vitestVitest 5.1 shipped --last-failed and --since-last-run so reruns target only the tests that matter.
The rerun loop is now a first-class workflow. --last-failed runs only tests that failed on the previous run, and --since-last-run collects everything affected since then. --changed now prints how many tests were affected next to the total.
Time mocking accepts Temporal values. vi.setSystemTime() takes Temporal.Instant and Temporal.ZonedDateTime alongside dates and numbers.
Retries report each attempt on its own. A failure buried inside a repeats run surfaces in its own result instead of collapsing into the final status, and test.fails no longer triggers a retry when it fails as expected.
Debugging failures got better in the editor and the browser UI. Trace view opens from VS Code and highlights multiple selector matches, and a test.ui.theme option sets the UI theme. A **--changed** run reports affected tests next to the total.
Setup failures now report as global setup errors instead of a misleading "no test files" message, and Vitest warns when two projects attach the same file. On the cache side, new file system cache environment variables join the existing dependency cache option, and cache directories can be tagged with CACHEDIR.TAG so tooling recognizes them.
No breaking changes or deprecations landed in these releases. Patch releases fixed smaller things: Vite's default fs.deny stays intact when an API token file is present, data was added to the import.meta.hot stub, and skipIf ignores undefined options. Earlier, 5.0.0 replaced loupe.inspect with pretty-format and moved the default attachmentsDir from .vitest-attachements/ to .vitest/attachments/.