Vai al contenuto
verdict:

Vitest 5.1.1

digest

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

note: nessuna sintesi per questa release digest

Le release digest sono elencate senza una sintesi. Le note di rilascio originali di questa versione sono qui sotto.

release-notesgithub.com/vitest-dev/vitest · 60 righe
  1. ###    🚀 Features
  2. - **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)
  3. ### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes
  4. - 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)
  5. - 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)
  6. - 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)
  7. - 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)
  8. - 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)
  9. - 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)
  10. - 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)
  11. - 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)
  12. - 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)
  13. - 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)
  14. - 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)
  15. - 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)
  16. - **ast-collect**:
  17. - 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)
  18. - **browser**:
  19. - 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)
  20. - 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)
  21. - **cache**:
  22. - 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)
  23. - 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)
  24. - 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)
  25. - 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)
  26. - **cli**:
  27. - 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)
  28. - **coverage**:
  29. - 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)
  30. - 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)
  31. - 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)
  32. - 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)
  33. - **experimental**:
  34. - 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)
  35. - **mocker**:
  36. - 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)
  37. - **pool**:
  38. - 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)
  39. - 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)
  40. - `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)
  41. - **reporter**:
  42. - 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)
  43. - **spy**:
  44. - 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)
  45. - **typecheck**:
  46. - 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)
  47. - 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)
  48. - **vitest**:
  49. - 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)
  50. ### &nbsp;&nbsp;&nbsp;🏎 Performance
  51. - 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)
  52. - 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)
  53. - **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)
  54. ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.1.0...v5.1.1)

vedi su githubdetected 2026-11-19 via npm