Vitest v5.1.1stable Released Nov 17, 2026
Impact Score: 4/10

Vitest v5.1.1 - Release Notes & Engineering Impact

Source available - automated, not human-reviewed

Component: vitest · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-17.

Compatibility not verified - check source notes
📄 .MD
⚡ Executive Summary (TL;DR)

Vitest v5.1.1 introduces environment variable support for fs module caching and addresses critical stability issues across worker pool management and test execution. These updates improve reliability for complex test suites and browser-based testing environments.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Developers utilizing test sharding, fixtures, or browser-mode testing should upgrade to resolve intermittent worker and test lifecycle failures.

📊 Product & Engineering Leads

This release maintains high development velocity by squashing bugs that impact test suite stability and execution performance.

⚙️ DevOps & Security

CI pipelines benefit from more robust worker termination, improved cache management, and optimized source map handling during test runs.

✨ New Features & Capabilities (1)

  • Added fs module cache environment variables

⚡ Performance & Enhancements (4)

  • Optimized source map transmission to workers
  • Improved CLI file filter resolution performance
  • Reused cached modules in browser mode
  • Improved diffs for asymmetric matchers

🔧 Bug Fixes & Patches (6)

  • Fixed rerun on file changes after config restart
  • Corrected fixture teardown and context leakage issues
  • Improved worker lifecycle management including stuck orphan termination
  • Fixed CLI --bail parsing
  • Enhanced V8 coverage reporting for sub-processes
  • Improved spy support for built-in modules using primordials

❓ Frequently Asked Questions

Does Vitest v5.1.1 contain breaking changes?

No, there are no documented breaking changes in this release.

What is the primary highlight of v5.1.1?

The primary highlight is a comprehensive set of stability fixes for worker processes and test execution lifecycle management, alongside performance optimizations for cache and source map handling.

How should teams prepare to upgrade to v5.1.1?

Teams should perform standard regression testing on their test suites, especially if using advanced features like browser-mode testing, sharding, or complex fixture setups, to ensure the new bug fixes behave as expected.

📄 View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;🚀 Features - **cache**: Add fs module cache env variables &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11859 [<samp>(708c0)</samp>](https://github.com/vitest-dev/vitest/commit/708c05da0) ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes - Rerun on file changes after a config restart &nbsp;-&nbsp; by @magurotuna in https://github.com/vitest-dev/vitest/issues/11772 and https://github.com/vitest-dev/vitest/issues/11829 [<samp>(289ca)</samp>](https://github.com/vitest-dev/vitest/commit/289caab9c) - Avoid leaking the context expect &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11845 [<samp>(3c967)</samp>](https://github.com/vitest-dev/vitest/commit/3c967a7b7) - Report fixture teardown errors once &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11857 [<samp>(6b167)</samp>](https://github.com/vitest-dev/vitest/commit/6b167eb79) - Improve diffs for asymmetric matchers &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11855 [<samp>(86775)</samp>](https://github.com/vitest-dev/vitest/commit/86775420f) - Apply --shard before the test run starts &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11846 [<samp>(e5c80)</samp>](https://github.com/vitest-dev/vitest/commit/e5c80b775) - Reset local expect state between retries for `expect.assertions/hasAssertions` &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11900 [<samp>(50dcd)</samp>](https://github.com/vitest-dev/vitest/commit/50dcdb373) - Sort test files before the seeded shuffle &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11926 [<samp>(3aa30)</samp>](https://github.com/vitest-dev/vitest/commit/3aa3045a9) - Tear down fixture contexts one at a time &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11956 [<samp>(5712b)</samp>](https://github.com/vitest-dev/vitest/commit/5712b5fd2) - Count merged errors in the error divider &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11955 [<samp>(4bc4f)</samp>](https://github.com/vitest-dev/vitest/commit/4bc4f86e8) - Match `-` and `.` in `noExternal` wildcards &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11978 [<samp>(efba8)</samp>](https://github.com/vitest-dev/vitest/commit/efba8cbfe) - Give each test attempt a new `signal` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11998 [<samp>(77a30)</samp>](https://github.com/vitest-dev/vitest/commit/77a306757) - Throw timeout error classes instead of Error &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/12003 [<samp>(9b874)</samp>](https://github.com/vitest-dev/vitest/commit/9b87492f7) - **ast-collect**: - Only collect calls with a name argument &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11853 [<samp>(c015a)</samp>](https://github.com/vitest-dev/vitest/commit/c015ad5a6) - **browser**: - Scale the iframe for preview without the UI &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11856 [<samp>(034d4)</samp>](https://github.com/vitest-dev/vitest/commit/034d44e54) - Fix expect.element with `message` and remove redundant `[ERROR]` in trace steps &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11832 [<samp>(1d115)</samp>](https://github.com/vitest-dev/vitest/commit/1d115dcc3) - **cache**: - Always leave a manifest to the fs module cache &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11858 [<samp>(1b238)</samp>](https://github.com/vitest-dev/vitest/commit/1b2380c88) - Watch cached files outside the root &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11860 [<samp>(9c044)</samp>](https://github.com/vitest-dev/vitest/commit/9c044db81) - Treat a removed cache file as a miss &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11861 [<samp>(f21f2)</samp>](https://github.com/vitest-dev/vitest/commit/f21f224ba) - Allow cache hits in configureServer &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11927 [<samp>(a0dfc)</samp>](https://github.com/vitest-dev/vitest/commit/a0dfc8b08) - **cli**: - Parse `--bail` correctly &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11896 [<samp>(4f91e)</samp>](https://github.com/vitest-dev/vitest/commit/4f91e76af) - **coverage**: - Transform untested files with correct project &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11870 [<samp>(83298)</samp>](https://github.com/vitest-dev/vitest/commit/832980392) - V8 to handle sub process script coverages separately &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11890 [<samp>(71ad4)</samp>](https://github.com/vitest-dev/vitest/commit/71ad4dfa1) - Derive `ignoreNode` AST type from installed parser &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11958 [<samp>(cab34)</samp>](https://github.com/vitest-dev/vitest/commit/cab34bb0e) - V8 to ignore more Vite&#39;s CJS import helpers &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11981 [<samp>(4e905)</samp>](https://github.com/vitest-dev/vitest/commit/4e905a1ba) - **experimental**: - Skip ambiguous `expect.poll` trace steps in concurrent tests &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5** in https://github.com/vitest-dev/vitest/issues/11869 [<samp>(f6ef4)</samp>](https://github.com/vitest-dev/vitest/commit/f6ef4b0ef) - **mocker**: - Keep re-exports of hoisted imports &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11867 [<samp>(5f72c)</samp>](https://github.com/vitest-dev/vitest/commit/5f72c3d0d) - **pool**: - Shutdown disconnected workers even when `testTimeout` is disabled &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11924 [<samp>(97911)</samp>](https://github.com/vitest-dev/vitest/commit/979118a70) - Terminate stuck orphaned forks workers &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11939 [<samp>(47c87)</samp>](https://github.com/vitest-dev/vitest/commit/47c87ebb5) - `isolate: false` to not re-use workers that failed to start &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11953 [<samp>(7e672)</samp>](https://github.com/vitest-dev/vitest/commit/7e67234a9) - **reporter**: - Report crashed test files as failed in json &nbsp;-&nbsp; by @magurotuna in https://github.com/vitest-dev/vitest/issues/11965 [<samp>(47fb9)</samp>](https://github.com/vitest-dev/vitest/commit/47fb992ca) - **spy**: - Use primordials to allow spying on builtins &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11837 [<samp>(d951e)</samp>](https://github.com/vitest-dev/vitest/commit/d951e63d3) - **typecheck**: - Add env var to hide experimental warning &nbsp;-&nbsp; by @aliamanatali in https://github.com/vitest-dev/vitest/issues/11840 [<samp>(5a69e)</samp>](https://github.com/vitest-dev/vitest/commit/5a69e4396) - Kill the checker process tree on windows &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11850 [<samp>(1fa69)</samp>](https://github.com/vitest-dev/vitest/commit/1fa69e09b) - **vitest**: - Allow assigning to import.meta.env &nbsp;-&nbsp; by @aliamanatali in https://github.com/vitest-dev/vitest/issues/11841 [<samp>(9fd1f)</samp>](https://github.com/vitest-dev/vitest/commit/9fd1f22a4) ### &nbsp;&nbsp;&nbsp;🏎 Performance - Send source maps to workers as a string &nbsp;-&nbsp; by @maschwenk in https://github.com/vitest-dev/vitest/issues/11750 [<samp>(485cd)</samp>](https://github.com/vitest-dev/vitest/commit/485cd627d) - Resolve CLI file filters once instead of per test file &nbsp;-&nbsp; by @maschwenk in https://github.com/vitest-dev/vitest/issues/11935 [<samp>(96a90)</samp>](https://github.com/vitest-dev/vitest/commit/96a9032af) - **browser**: Reuse cached modules during vitest run &nbsp;-&nbsp; by @magurotuna in https://github.com/vitest-dev/vitest/issues/11914 [<samp>(0c502)</samp>](https://github.com/vitest-dev/vitest/commit/0c502bc72) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.1.0...v5.1.1)