Vai al contenuto
verdict:

Vitest 5.0.0-beta.4

preview

note: la sintesi e le note di rilascio sono in inglese

note: nessuna sintesi per questa release più vecchia

Sintetizziamo le release recenti. Le note di rilascio originali di questa versione sono qui sotto.

release-notesgithub.com/vitest-dev/vitest · 37 righe
  1. ###    🚨 Breaking Changes
  2. - Throw an error if hoistable methods are outside the top level scope &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10460 [<samp>(d0b4f)</samp>](https://github.com/vitest-dev/vitest/commit/d0b4fddcb)
  3. - `toHaveTextContent` is strict, add `toMatchTextContent` as alternative &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10473 [<samp>(18f30)</samp>](https://github.com/vitest-dev/vitest/commit/18f303079)
  4. - **benchmark**: Rewrite the public API &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10113 [<samp>(19f6e)</samp>](https://github.com/vitest-dev/vitest/commit/19f6e8947)
  5. - **browser**: Enable `locators.exact` by default &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10430 [<samp>(e2032)</samp>](https://github.com/vitest-dev/vitest/commit/e203202f9)
  6. ### &nbsp;&nbsp;&nbsp;🚀 Features
  7. - **browser**: Show trace view steps in editor panel &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10404 [<samp>(8c4b6)</samp>](https://github.com/vitest-dev/vitest/commit/8c4b6da02)
  8. - **reporter**: Support html reporter single file output &nbsp;-&nbsp; by @hi-ogawa, **Codex** and **Claude Opus 4.7 (1M context)** in https://github.com/vitest-dev/vitest/issues/10235 [<samp>(f757e)</samp>](https://github.com/vitest-dev/vitest/commit/f757ec5e6)
  9. ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes
  10. - Preserve `vi.defineHelper` callsite for async error stack &nbsp;-&nbsp; by @macayu17 and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10415 [<samp>(ac697)</samp>](https://github.com/vitest-dev/vitest/commit/ac6971ca2)
  11. - Respect `disableConsoleIntercept` in browser mode &nbsp;-&nbsp; by @Copilot, **hi-ogawa**, @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10391 [<samp>(66110)</samp>](https://github.com/vitest-dev/vitest/commit/66110d271)
  12. - ForceRerunTriggers uses directory globs against files &nbsp;-&nbsp; by @Patrick-Clausen and **Patrick Clausen** in https://github.com/vitest-dev/vitest/issues/10421 and https://github.com/vitest-dev/vitest/issues/10420 [<samp>(4fee2)</samp>](https://github.com/vitest-dev/vitest/commit/4fee2e303)
  13. - Unify typechecking and ast collection &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10449 [<samp>(af993)</samp>](https://github.com/vitest-dev/vitest/commit/af993b66b)
  14. - Don't print typecheck warning more than once &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10461 [<samp>(15275)</samp>](https://github.com/vitest-dev/vitest/commit/152750ec0)
  15. - Correct collumn when parsing tests &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10467 [<samp>(7c2fc)</samp>](https://github.com/vitest-dev/vitest/commit/7c2fc133e)
  16. - **browser**:
  17. - Fix stale source map on watch mode &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10389 [<samp>(6d772)</samp>](https://github.com/vitest-dev/vitest/commit/6d772c800)
  18. - Escape inline orchestrator scripts &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10412 [<samp>(c22cf)</samp>](https://github.com/vitest-dev/vitest/commit/c22cfb656)
  19. - Disable client `cdp` API when `allowWrite/allowExec: false` &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10444 [<samp>(63e3b)</samp>](https://github.com/vitest-dev/vitest/commit/63e3b2eee)
  20. - **mocker**:
  21. - Skip hoist transform without ast mock calls &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10410 [<samp>(0468e)</samp>](https://github.com/vitest-dev/vitest/commit/0468e1572)
  22. - **ui**:
  23. - Fix module graph in browser mode with --ui &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10386 [<samp>(3003c)</samp>](https://github.com/vitest-dev/vitest/commit/3003c4327)
  24. - Render ANSI color codes in editor panel inline error widget &nbsp;-&nbsp; by @Copilot, **hi-ogawa** and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10418 [<samp>(766b8)</samp>](https://github.com/vitest-dev/vitest/commit/766b8d2fa)
  25. - **webdriverio**:
  26. - Allow gpu in headless chrome &nbsp;-&nbsp; by @rotempasharel1 in https://github.com/vitest-dev/vitest/issues/10376 [<samp>(f310a)</samp>](https://github.com/vitest-dev/vitest/commit/f310abe4e)
  27. ### &nbsp;&nbsp;&nbsp;🏎 Performance
  28. - Improve performance in hot paths &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10446 [<samp>(03faf)</samp>](https://github.com/vitest-dev/vitest/commit/03faf6db6)
  29. ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.0-beta.3...v5.0.0-beta.4)

vedi su githubimported 2026-09-28 via npm