Aller au contenu
verdict:

Vitest 5.0.0-rc.1

preview

note: la synthèse et les notes de version sont en anglais

note: pas de synthèse pour cette release plus ancienne

Nous synthétisons les releases récentes. Les notes de version originales de cette version sont ci-dessous.

release-notesgithub.com/vitest-dev/vitest · 61 lignes
  1. ###    🚨 Breaking Changes
  2. - Inline projects extend the root config by default &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10750 [<samp>(fec00)</samp>](https://github.com/vitest-dev/vitest/commit/fec001ad3)
  3. - Enable mocking Temporal without fake timers &nbsp;-&nbsp; by @fabon-f, **Hiroshi Ogawa** and **OpenCode** in https://github.com/vitest-dev/vitest/issues/10757 [<samp>(ac2d4)</samp>](https://github.com/vitest-dev/vitest/commit/ac2d46b42)
  4. - Support nested projects &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10846 [<samp>(ec367)</samp>](https://github.com/vitest-dev/vitest/commit/ec367cf2a)
  5. - Use `>` as separator in `-t`, calculate `only` once &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10686 [<samp>(a0b20)</samp>](https://github.com/vitest-dev/vitest/commit/a0b20bc86)
  6. - Fail the test when an asynchronous assertion is not awaited &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10868 [<samp>(86d4a)</samp>](https://github.com/vitest-dev/vitest/commit/86d4a9da9)
  7. - Share the Vite server between inline projects &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10848 [<samp>(d87c9)</samp>](https://github.com/vitest-dev/vitest/commit/d87c96ee4)
  8. - **browser**: Save failure screenshots in `attachmentsDir` &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/10917 [<samp>(3b5bb)</samp>](https://github.com/vitest-dev/vitest/commit/3b5bbd8b4)
  9. - **spy**: Preserve class mock prototype methods on instances &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10910 [<samp>(6093d)</samp>](https://github.com/vitest-dev/vitest/commit/6093d764a)
  10. - **types**: Add better promise support in expects and matchers &nbsp;-&nbsp; by @samchungy and @sheremet-va in https://github.com/vitest-dev/vitest/issues/8266 [<samp>(41f55)</samp>](https://github.com/vitest-dev/vitest/commit/41f551bce)
  11. ### &nbsp;&nbsp;&nbsp;🚀 Features
  12. - Report the duration breakdown as percentages &nbsp;-&nbsp; by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10820 [<samp>(c67d2)</samp>](https://github.com/vitest-dev/vitest/commit/c67d296f4)
  13. - **cli**: Support -p shorthand for --project &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10826 [<samp>(1addd)</samp>](https://github.com/vitest-dev/vitest/commit/1adddde12)
  14. - **vm**: Support `require(esm)` in vm pools &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10829 [<samp>(01298)</samp>](https://github.com/vitest-dev/vitest/commit/01298e5b3)
  15. ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes
  16. - Coalesce concurrent watch-mode restarts, deflake the pool stderr fixture &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10822 [<samp>(a31f8)</samp>](https://github.com/vitest-dev/vitest/commit/a31f86af7)
  17. - Prevent `vitest --typecheck` from reporting a false success when the `tsc` process crashes &nbsp;-&nbsp; by @hitenkalda and **Hiten Kalda** in https://github.com/vitest-dev/vitest/issues/10705 [<samp>(a1b05)</samp>](https://github.com/vitest-dev/vitest/commit/a1b0565c9)
  18. - Collect in-source tests when the module is cached &nbsp;-&nbsp; by @koutaro-masaki in https://github.com/vitest-dev/vitest/issues/10577 and https://github.com/vitest-dev/vitest/issues/10589 [<samp>(a7bf2)</samp>](https://github.com/vitest-dev/vitest/commit/a7bf2b2c8)
  19. - Swap replace() arguments so timeout error stack shows the real message &nbsp;-&nbsp; by @lazerg in https://github.com/vitest-dev/vitest/issues/10875 [<samp>(aba0f)</samp>](https://github.com/vitest-dev/vitest/commit/aba0f9b7b)
  20. - Stale mock metadata breaks automocking with isolate:false &nbsp;-&nbsp; by @kade-robertson in https://github.com/vitest-dev/vitest/issues/10145 and https://github.com/vitest-dev/vitest/issues/10541 [<samp>(8e210)</samp>](https://github.com/vitest-dev/vitest/commit/8e2108dda)
  21. - Don't lose worker output on teardown, deflake timing-sensitive tests &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10842 [<samp>(1216b)</samp>](https://github.com/vitest-dev/vitest/commit/1216b5af9)
  22. - **browser**:
  23. - Ignore channel events in a tester opened as a top-level window &nbsp;-&nbsp; by @simshanith in https://github.com/vitest-dev/vitest/issues/9379 and https://github.com/vitest-dev/vitest/issues/9381 [<samp>(46a3c)</samp>](https://github.com/vitest-dev/vitest/commit/46a3cf750)
  24. - Resolve `connectTimeout` from the project config &nbsp;-&nbsp; by @lazerg in https://github.com/vitest-dev/vitest/issues/10879 and https://github.com/vitest-dev/vitest/issues/10880 [<samp>(62c79)</samp>](https://github.com/vitest-dev/vitest/commit/62c795d63)
  25. - Prebundle vite module runner with vitest &nbsp;-&nbsp; by @lebovvskii and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10836 and https://github.com/vitest-dev/vitest/issues/10856 [<samp>(37c24)</samp>](https://github.com/vitest-dev/vitest/commit/37c240158)
  26. - Restore dependency reload warning &nbsp;-&nbsp; by @hi-ogawa, **Hiroshi Ogawa** and **OpenCode** in https://github.com/vitest-dev/vitest/issues/10913 [<samp>(90d69)</samp>](https://github.com/vitest-dev/vitest/commit/90d696d44)
  27. - Configure internal optimizer dependencies &nbsp;-&nbsp; by @hi-ogawa, **Hiroshi Ogawa** and **OpenCode** in https://github.com/vitest-dev/vitest/issues/10915 [<samp>(a72f4)</samp>](https://github.com/vitest-dev/vitest/commit/a72f46eac)
  28. - **cache**:
  29. - Improve `fsModuleCache` resiliency during external modifications &nbsp;-&nbsp; by @jszumski in https://github.com/vitest-dev/vitest/issues/10869 [<samp>(5eb35)</samp>](https://github.com/vitest-dev/vitest/commit/5eb3570e8)
  30. - **cli**:
  31. - Exit on `CTRL+c` even when `globalSetup` runs blocked code &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10863 [<samp>(d568f)</samp>](https://github.com/vitest-dev/vitest/commit/d568f8ce3)
  32. - **deps**:
  33. - Update all non-major dependencies &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9958 [<samp>(7faa7)</samp>](https://github.com/vitest-dev/vitest/commit/7faa7b04a)
  34. - Update all non-major dependencies &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10861 [<samp>(0188c)</samp>](https://github.com/vitest-dev/vitest/commit/0188c8135)
  35. - Update all non-major dependencies &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10898 [<samp>(61c4b)</samp>](https://github.com/vitest-dev/vitest/commit/61c4b8024)
  36. - **expect**:
  37. - Handle nullish toHaveProperty values &nbsp;-&nbsp; by @liyimil in https://github.com/vitest-dev/vitest/issues/10735 and https://github.com/vitest-dev/vitest/issues/10811 [<samp>(99e59)</samp>](https://github.com/vitest-dev/vitest/commit/99e596d33)
  38. - **reporters**:
  39. - Print parent describe suites when the passed-test list is hidden &nbsp;-&nbsp; by @ChihebBENCHEIKH1, **Chiheb Bencheikh** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10606 and https://github.com/vitest-dev/vitest/issues/10768 [<samp>(658af)</samp>](https://github.com/vitest-dev/vitest/commit/658affeb3)
  40. - **runner**:
  41. - Don't fail collection when accessing `error.stack` throws &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10839 [<samp>(202e2)</samp>](https://github.com/vitest-dev/vitest/commit/202e27f3d)
  42. - **spy**:
  43. - Point ESM namespace spy error to module mocking docs &nbsp;-&nbsp; by @ryandiginomad and **Ryan Tang** in https://github.com/vitest-dev/vitest/issues/10707 [<samp>(d6cec)</samp>](https://github.com/vitest-dev/vitest/commit/d6ceca9d7)
  44. - **typecheck**:
  45. - Report a checker crash on Windows instead of a spawn failure &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10907 [<samp>(77aac)</samp>](https://github.com/vitest-dev/vitest/commit/77aac87dd)
  46. - **vitest**:
  47. - Remove broken "./src/*" export from package.json &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10918 [<samp>(2e5df)</samp>](https://github.com/vitest-dev/vitest/commit/2e5df7543)
  48. - **vm**:
  49. - Stop retaining every finished test file in vm pool workers &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10854 [<samp>(38503)</samp>](https://github.com/vitest-dev/vitest/commit/3850323e2)
  50. ### &nbsp;&nbsp;&nbsp;🏎 Performance
  51. - Lowers peak memory usage when using `--changed` on a large graph &nbsp;-&nbsp; by @jszumski in https://github.com/vitest-dev/vitest/issues/10866 [<samp>(9f23f)</samp>](https://github.com/vitest-dev/vitest/commit/9f23f8ec3)
  52. - **browser**: Serve framework assets as immutable &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10729 [<samp>(7af87)</samp>](https://github.com/vitest-dev/vitest/commit/7af8755ae)
  53. ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.0-beta.7...v5.0.0-rc.1)

voir sur githubimported 2026-09-28 via npm