Vitest v1.4.0stable Released Mar 15, 2024
Impact Score: 5/10

Vitest v1.4.0 โ€” 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-01.

Compatibility not verified โ€” check source notes
๐Ÿ“„ .MD
โšก Executive Summary (TL;DR)

Vitest v1.4.0. Source highlight:    ๐Ÿš€ Features

Who Does This Impact? (Role-Based Analysis)

๐Ÿ’ป Software Engineers & Devs

Check the source notes against the package and APIs you use before upgrading.

๐Ÿ“Š Product & Engineering Leads

Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.

โš™๏ธ DevOps & Security

Verify the target version, runtime requirements and rollback procedure in the official documentation.

โœจ New Features & Capabilities (6)

  • Throw error when using snapshot assertion with `not` &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5294 <samp>(b9d37)</samp>
  • Add a flag to include test location in tasks &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5342 <samp>(d627e)</samp>
  • Support wildcards in `--project` option &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5295 <samp>(201bd)</samp>
  • Add `shuffle.files` and `shuffle.tests` options &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5281 <samp>(356db)</samp>
  • Deprecate `cache.dir` option &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5229 <samp>(d7e8b)</samp>
  • Support `--changed` option &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5314 <samp>(600b4)</samp>

๐Ÿ”ง Bug Fixes & Patches (6)

  • Repeatable `--project` option &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5265 <samp>(d1a06)</samp>
  • `--inspect-brk` to pause before execution &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5355 <samp>(e77c5)</samp>
  • Correct locations in test.each tasks &nbsp;-&nbsp; by @sheremet-va <samp>(4f6e3)</samp>
  • Use resolvedUrls from devserver &nbsp;-&nbsp; by @saitonakamura and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5289 <samp>(2fef5)</samp>
  • Add `magic-string` to `optimizeDeps.include` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5278 <samp>(8f04e)</samp>
  • Expensive regexp hangs v8 report generation &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5259 <samp>(d68a7)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;๐Ÿš€ Features - Throw error when using snapshot assertion with `not` &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5294 [<samp>(b9d37)</samp>](https://github.com/vitest-dev/vitest/commit/b9d378f5) - Add a flag to include test location in tasks &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5342 [<samp>(d627e)</samp>](https://github.com/vitest-dev/vitest/commit/d627e209) - **cli**: - Support wildcards in `--project` option &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5295 [<samp>(201bd)</samp>](https://github.com/vitest-dev/vitest/commit/201bd067) - **config**: - Add `shuffle.files` and `shuffle.tests` options &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5281 [<samp>(356db)</samp>](https://github.com/vitest-dev/vitest/commit/356db87b) - Deprecate `cache.dir` option &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5229 [<samp>(d7e8b)</samp>](https://github.com/vitest-dev/vitest/commit/d7e8b53e) - **coverage**: - Support `--changed` option &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5314 [<samp>(600b4)</samp>](https://github.com/vitest-dev/vitest/commit/600b44d6) - **vitest**: - Support `clearScreen` cli flag &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5241 [<samp>(e1735)</samp>](https://github.com/vitest-dev/vitest/commit/e1735fb6) ### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - Repeatable `--project` option &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5265 [<samp>(d1a06)</samp>](https://github.com/vitest-dev/vitest/commit/d1a06730) - `--inspect-brk` to pause before execution &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5355 [<samp>(e77c5)</samp>](https://github.com/vitest-dev/vitest/commit/e77c553f) - Correct locations in test.each tasks &nbsp;-&nbsp; by @sheremet-va [<samp>(4f6e3)</samp>](https://github.com/vitest-dev/vitest/commit/4f6e39c1) - **api**: - Use resolvedUrls from devserver &nbsp;-&nbsp; by @saitonakamura and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5289 [<samp>(2fef5)</samp>](https://github.com/vitest-dev/vitest/commit/2fef5a7e) - **browser**: - Add `magic-string` to `optimizeDeps.include` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5278 [<samp>(8f04e)</samp>](https://github.com/vitest-dev/vitest/commit/8f04e798) - **coverage**: - Expensive regexp hangs v8 report generation &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5259 [<samp>(d68a7)</samp>](https://github.com/vitest-dev/vitest/commit/d68a7390) - V8 to ignore type-only files &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5328 [<samp>(c3eb8)</samp>](https://github.com/vitest-dev/vitest/commit/c3eb8deb) - Respect source maps of pre-transpiled sources &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5367 [<samp>(6eda4)</samp>](https://github.com/vitest-dev/vitest/commit/6eda473f) - Prevent `reportsDirectory` from removing user's project &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5376 [<samp>(07ec3)</samp>](https://github.com/vitest-dev/vitest/commit/07ec3779) - **expect**: - Show diff on `toContain/toMatch` assertion error &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5267 [<samp>(8ee59)</samp>](https://github.com/vitest-dev/vitest/commit/8ee59f0d) - **forks**: - Wrap `defines` to support `undefined` values &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5284 [<samp>(5b58b)</samp>](https://github.com/vitest-dev/vitest/commit/5b58b399) - **typecheck**: - Update get-tsconfig 4.7.3 to fix false circularity error &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5384 [<samp>(bdc37)</samp>](https://github.com/vitest-dev/vitest/commit/bdc371ee) - **ui**: - Escape html in error diff &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5325 [<samp>(ab60b)</samp>](https://github.com/vitest-dev/vitest/commit/ab60bf8d) - **vitest**: - Loosen `onConsoleLog` return type &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5337 [<samp>(6d1b1)</samp>](https://github.com/vitest-dev/vitest/commit/6d1b1451) - Ensure restoring terminal cursor on close &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5292 [<samp>(0bea2)</samp>](https://github.com/vitest-dev/vitest/commit/0bea2247) - Ignore timeout on websocket reporter rpc &nbsp;-&nbsp; by @sheremet-va [<samp>(38119)</samp>](https://github.com/vitest-dev/vitest/commit/38119b75) - Correctly override api with --no-api flag &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5386 [<samp>(51d1d)</samp>](https://github.com/vitest-dev/vitest/commit/51d1d472) - Logs in `beforeAll` and `afterAll` &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5288 [<samp>(ce5ca)</samp>](https://github.com/vitest-dev/vitest/commit/ce5ca6bf) - **workspace**: - Throw error when browser mode and `@vitest/coverage-v8` are used &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5250 [<samp>(29f98)</samp>](https://github.com/vitest-dev/vitest/commit/29f98cd3) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v1.3.1...v1.4.0)