Zum Inhalt springen
verdict:

Vitest 5.1.0

notable

note: die Zusammenfassung und die Release Notes sind auf Englisch

pending: Zusammenfassung in der Warteschlange

Erkannt am 2026-11-03 um 02:31 UTC. Zusammenfassungen kommen meist innerhalb weniger Stunden; die vollständigen Release Notes stehen schon hier unten.

release-notesgithub.com/vitest-dev/vitest · 100 Zeilen
  1. ###    🚀 Features
  2. - Add `--last-failed` to run only failed tests &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11558 [<samp>(82f63)</samp>](https://github.com/vitest-dev/vitest/commit/82f634220)
  3. - Support `Temporal.Instant` and `Temporal.ZonedDateTime` in `vi.setSystemTime()` &nbsp;-&nbsp; by @Prajwal2246, **Prajwal2246**, **Claude Opus 5.5 (1M context)**, @hi-ogawa and **Codex (GPT-6)** in https://github.com/vitest-dev/vitest/issues/11321 [<samp>(f150f)</samp>](https://github.com/vitest-dev/vitest/commit/f150f5108)
  4. - Introduce `--since-last-run` flag &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11516 [<samp>(08bd9)</samp>](https://github.com/vitest-dev/vitest/commit/08bd93b7e)
  5. - Expose per-retry/repeat attempt result &nbsp;-&nbsp; by @hi-ogawa, **Codex (GPT-6)** and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11232 [<samp>(21be4)</samp>](https://github.com/vitest-dev/vitest/commit/21be412ed)
  6. - Support fake timers for `node:timers` and `node:timers/promise` &nbsp;-&nbsp; by @hi-ogawa, **OpenCode** and **Codex (GPT-6)** in https://github.com/vitest-dev/vitest/issues/10899 [<samp>(fbe97)</samp>](https://github.com/vitest-dev/vitest/commit/fbe973cae)
  7. - Allow coverage providers to store data in fs module cache &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11747 [<samp>(54a2b)</samp>](https://github.com/vitest-dev/vitest/commit/54a2bdb81)
  8. - Interactively review failed snapshots &nbsp;-&nbsp; by @macarie and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/11325 [<samp>(54e5b)</samp>](https://github.com/vitest-dev/vitest/commit/54e5b8a8a)
  9. - **browser**:
  10. - Mock modules through an import map &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11534 [<samp>(707f8)</samp>](https://github.com/vitest-dev/vitest/commit/707f8adf4)
  11. - Drop experimental label from trace view &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11518 [<samp>(44c3c)</samp>](https://github.com/vitest-dev/vitest/commit/44c3c2fcf)
  12. - Introduce experimental `pointer` API &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/10780 [<samp>(5dc09)</samp>](https://github.com/vitest-dev/vitest/commit/5dc09f0ea)
  13. - Capture aria snapshot in trace view &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11492 [<samp>(0cc39)</samp>](https://github.com/vitest-dev/vitest/commit/0cc39fb90)
  14. - Show trace steps timeline on terminal on test failure &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11594 [<samp>(973dc)</samp>](https://github.com/vitest-dev/vitest/commit/973dc84be)
  15. - Add failure-only trace view mode &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11612 [<samp>(d5d7d)</samp>](https://github.com/vitest-dev/vitest/commit/d5d7d2f06)
  16. - Enable failure-only trace view by default &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11766 [<samp>(f37b6)</samp>](https://github.com/vitest-dev/vitest/commit/f37b6b707)
  17. - **coverage**:
  18. - V8 to support `ignoreNode` option &nbsp;-&nbsp; by @erickserra and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11688 [<samp>(e02db)</samp>](https://github.com/vitest-dev/vitest/commit/e02db0869)
  19. - **experimental**:
  20. - Add trace timeline for node &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11753 [<samp>(4e985)</samp>](https://github.com/vitest-dev/vitest/commit/4e9855151)
  21. - Add message option to vi.waitFor and vi.waitUntil &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11754 [<samp>(fd145)</samp>](https://github.com/vitest-dev/vitest/commit/fd145d8d6)
  22. ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes
  23. - Rerun setup files after `--changed` filtering &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11621 [<samp>(3a39c)</samp>](https://github.com/vitest-dev/vitest/commit/3a39cfc54)
  24. - Return the mock to concurrent imports &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11623 [<samp>(1453b)</samp>](https://github.com/vitest-dev/vitest/commit/1453ba690)
  25. - Don&#39;t fail on console log pending at teardown &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11619 [<samp>(a60b8)</samp>](https://github.com/vitest-dev/vitest/commit/a60b8e132)
  26. - Reference chai types in every d.ts chunk &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11618 [<samp>(fb150)</samp>](https://github.com/vitest-dev/vitest/commit/fb150158b)
  27. - Detect mock factory cycles that form later &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11642 [<samp>(e9554)</samp>](https://github.com/vitest-dev/vitest/commit/e95541584)
  28. - Skip fs module cache for typed import.meta.glob &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11666 [<samp>(79501)</samp>](https://github.com/vitest-dev/vitest/commit/79501f3a1)
  29. - Run tests that import a deleted file &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11669 [<samp>(80aa1)</samp>](https://github.com/vitest-dev/vitest/commit/80aa13dd6)
  30. - Keep syntax highlighting in code frames &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11705 [<samp>(d39f5)</samp>](https://github.com/vitest-dev/vitest/commit/d39f51548)
  31. - Respect CLI filters when prewarming browsers &nbsp;-&nbsp; by @sheremet-va and **Benjamin Tang** in https://github.com/vitest-dev/vitest/issues/11706 [<samp>(10947)</samp>](https://github.com/vitest-dev/vitest/commit/109474892)
  32. - Read cached source as utf-8 &nbsp;-&nbsp; by @juan-fernandez in https://github.com/vitest-dev/vitest/issues/11682 and https://github.com/vitest-dev/vitest/issues/11709 [<samp>(867a5)</samp>](https://github.com/vitest-dev/vitest/commit/867a5e41c)
  33. - Inherit `watch` from the root config in projects &nbsp;-&nbsp; by @nstepien and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11724 [<samp>(77c12)</samp>](https://github.com/vitest-dev/vitest/commit/77c122c6b)
  34. - Prefix expect.poll message to all errors &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11756 [<samp>(cab58)</samp>](https://github.com/vitest-dev/vitest/commit/cab5877db)
  35. - Support api.port 0 &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11641 [<samp>(3667c)</samp>](https://github.com/vitest-dev/vitest/commit/3667cf8a3)
  36. - Show attempts in test error logs of retried tests &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11696 [<samp>(77a94)</samp>](https://github.com/vitest-dev/vitest/commit/77a94328a)
  37. - Preserve rootDir in project paths &nbsp;-&nbsp; by @btea in https://github.com/vitest-dev/vitest/issues/11816 [<samp>(bf96d)</samp>](https://github.com/vitest-dev/vitest/commit/bf96dad6a)
  38. - **browser**:
  39. - Change default port to 23315 &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11640 [<samp>(a2ec4)</samp>](https://github.com/vitest-dev/vitest/commit/a2ec4166d)
  40. - Advance fake timers in actions and expect.element &nbsp;-&nbsp; by @julienw, @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11242 [<samp>(68190)</samp>](https://github.com/vitest-dev/vitest/commit/6819008ce)
  41. - Drop trace view warning without html reporter &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11665 [<samp>(e6407)</samp>](https://github.com/vitest-dev/vitest/commit/e64075ef5)
  42. - Detect shared chunks via the optimizer &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11661 [<samp>(e2e9c)</samp>](https://github.com/vitest-dev/vitest/commit/e2e9c64b0)
  43. - Clear screenshot stability timeout &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11659 [<samp>(fbe37)</samp>](https://github.com/vitest-dev/vitest/commit/fbe37c083)
  44. - Measure prepare duration with one clock &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11667 [<samp>(a3ed4)</samp>](https://github.com/vitest-dev/vitest/commit/a3ed42a14)
  45. - Keep failure screenshot per attempt &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11694 [<samp>(a5022)</samp>](https://github.com/vitest-dev/vitest/commit/a5022655d)
  46. - Print trace timeline of each attempt &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11695 [<samp>(27229)</samp>](https://github.com/vitest-dev/vitest/commit/272296e5d)
  47. - Don&#39;t hang in `page.viewport()` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11738 [<samp>(49ff4)</samp>](https://github.com/vitest-dev/vitest/commit/49ff4420c)
  48. - Skip trace entries after their attempt ended &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11771 [<samp>(7a56f)</samp>](https://github.com/vitest-dev/vitest/commit/7a56fea53)
  49. - Focus the iframe before clicking in playwright &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11798 [<samp>(eb20a)</samp>](https://github.com/vitest-dev/vitest/commit/eb20a3af1)
  50. - Fail the run when a tester cannot connect &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11802 [<samp>(605bf)</samp>](https://github.com/vitest-dev/vitest/commit/605bf22b7)
  51. - Treat edge as chromium in toHaveStyle &nbsp;-&nbsp; by @aliamanatali in https://github.com/vitest-dev/vitest/issues/11813 [<samp>(f4dd9)</samp>](https://github.com/vitest-dev/vitest/commit/f4dd97652)
  52. - **cache**:
  53. - Handle concurrent cache clearing &nbsp;-&nbsp; by @7rulnik in https://github.com/vitest-dev/vitest/issues/11697 [<samp>(09076)</samp>](https://github.com/vitest-dev/vitest/commit/090766a42)
  54. - Key module cache on the deps optimizer &nbsp;-&nbsp; by @MO2k4 and **Martin Oehlert** in https://github.com/vitest-dev/vitest/issues/11775 [<samp>(52485)</samp>](https://github.com/vitest-dev/vitest/commit/524856ed0)
  55. - Do not fail when the cache dir is unwritable &nbsp;-&nbsp; by @ezefernandezyf in https://github.com/vitest-dev/vitest/issues/11781 [<samp>(274ab)</samp>](https://github.com/vitest-dev/vitest/commit/274ab70c4)
  56. - **cli**:
  57. - Use camelCase for sinceLastRun help &nbsp;-&nbsp; by @fengmk2 in https://github.com/vitest-dev/vitest/issues/11707 [<samp>(5c674)</samp>](https://github.com/vitest-dev/vitest/commit/5c674859b)
  58. - **coverage**:
  59. - V8 `autoAttachSubprocess` to use `.tmp` directory &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11632 [<samp>(de5af)</samp>](https://github.com/vitest-dev/vitest/commit/de5af2939)
  60. - V8 to ignore Vite&#39;s generated CJS namespace import helper &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11676 [<samp>(5901f)</samp>](https://github.com/vitest-dev/vitest/commit/5901fb458)
  61. - **deps**:
  62. - Update all non-major dependencies &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11637 [<samp>(2b18e)</samp>](https://github.com/vitest-dev/vitest/commit/2b18e3724)
  63. - **expect**:
  64. - Keep soft .resolves/.rejects error location &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11792 [<samp>(42770)</samp>](https://github.com/vitest-dev/vitest/commit/42770759f)
  65. - **mocker**:
  66. - Don&#39;t change the original prototype chain &nbsp;-&nbsp; by @sheremet-va and **Max Schwenk** in https://github.com/vitest-dev/vitest/issues/11737 [<samp>(cca42)</samp>](https://github.com/vitest-dev/vitest/commit/cca423de9)
  67. - Use root __mocks__ for linked packages &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7708 and https://github.com/vitest-dev/vitest/issues/11739 [<samp>(810ec)</samp>](https://github.com/vitest-dev/vitest/commit/810ec66e1)
  68. - **runner**:
  69. - Don&#39;t drop throttled task updates &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11795 [<samp>(8e837)</samp>](https://github.com/vitest-dev/vitest/commit/8e837b87a)
  70. - **ui**:
  71. - Escape search text in explorer highlight &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11672 [<samp>(3c6d6)</samp>](https://github.com/vitest-dev/vitest/commit/3c6d6dd24)
  72. - Fix html reporter crash when --bail cancels files &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11693 [<samp>(36a5f)</samp>](https://github.com/vitest-dev/vitest/commit/36a5fa132)
  73. - Fix quirks mode in trace view replay &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11744 [<samp>(b9b73)</samp>](https://github.com/vitest-dev/vitest/commit/b9b73596c)
  74. - Let coverage report follow UI color scheme &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11765 [<samp>(59c2d)</samp>](https://github.com/vitest-dev/vitest/commit/59c2dd3a7)
  75. - Open trace view only for tests with a trace &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11770 [<samp>(c022d)</samp>](https://github.com/vitest-dev/vitest/commit/c022d630f)
  76. - **vm**:
  77. - Strip hashbang before compiling CommonJS dependencies &nbsp;-&nbsp; by @cwoebker in https://github.com/vitest-dev/vitest/issues/11731 [<samp>(1a77c)</samp>](https://github.com/vitest-dev/vitest/commit/1a77c6cbc)
  78. - Keep node globals after teardown &nbsp;-&nbsp; by @francesco-agnoletto in https://github.com/vitest-dev/vitest/issues/11380 and https://github.com/vitest-dev/vitest/issues/11681 [<samp>(a57b4)</samp>](https://github.com/vitest-dev/vitest/commit/a57b4d8a3)
  79. - Reset fake timers after each test file &nbsp;-&nbsp; by @francesco-agnoletto in https://github.com/vitest-dev/vitest/issues/11679 and https://github.com/vitest-dev/vitest/issues/11779 [<samp>(78c46)</samp>](https://github.com/vitest-dev/vitest/commit/78c46acdf)
  80. - Keep assignable accessor globals writable in node environment &nbsp;-&nbsp; by @MO2k4 and **Martin Oehlert** in https://github.com/vitest-dev/vitest/issues/11834 [<samp>(a5ec3)</samp>](https://github.com/vitest-dev/vitest/commit/a5ec316f8)
  81. ### &nbsp;&nbsp;&nbsp;🏎 Performance
  82. - Reuse fsModuleCache in static collection &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11622 [<samp>(1766c)</samp>](https://github.com/vitest-dev/vitest/commit/1766c257d)
  83. - Cache setup/mock resolves in reused workers &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11760 [<samp>(5de10)</samp>](https://github.com/vitest-dev/vitest/commit/5de103a9c)
  84. - Don&#39;t refetch warm modules in reused runners &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11761 [<samp>(4f135)</samp>](https://github.com/vitest-dev/vitest/commit/4f135cc1d)
  85. - **browser**:
  86. - Map only first frame for trace locations &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 5.5 (1M context)** in https://github.com/vitest-dev/vitest/issues/11613 [<samp>(a967d)</samp>](https://github.com/vitest-dev/vitest/commit/a967d8f39)
  87. - Disable WebSocketServer&#39;s allowSynchronousEvents &nbsp;-&nbsp; by @nstepien in https://github.com/vitest-dev/vitest/issues/11794 [<samp>(d4572)</samp>](https://github.com/vitest-dev/vitest/commit/d4572032f)
  88. - **coverage**:
  89. - Istanbul to use `magic-string`+`rolldown` for instrumentation &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11648 [<samp>(2470b)</samp>](https://github.com/vitest-dev/vitest/commit/2470befec)
  90. - Istanbul to collect uncovered files in `Promise.all` &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11713 [<samp>(f1092)</samp>](https://github.com/vitest-dev/vitest/commit/f1092b34b)
  91. - Istanbul to not store input source maps in coverage data &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11686 [<samp>(2debb)</samp>](https://github.com/vitest-dev/vitest/commit/2debb4e51)
  92. - **expect**:
  93. - Compare typed arrays in one loop &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11658 [<samp>(908eb)</samp>](https://github.com/vitest-dev/vitest/commit/908eb573f)
  94. ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.5...v5.1.0)

auf github ansehendetected 2026-11-03 über npm