vitest-dev/vitest
### [`v0.29.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.29.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.29.1...v0.29.2)
##### 🐞 Bug Fixes
- Optimize dependencies in setup files - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2935](https://togithub.com/vitest-dev/vitest/issues/2935) [(c169f)](https://togithub.com/vitest-dev/vitest/commit/c169f980)
- **coverage**: C8 provider to work when isolate:false - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2929](https://togithub.com/vitest-dev/vitest/issues/2929) [(86538)](https://togithub.com/vitest-dev/vitest/commit/8653830b)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.29.1...v0.29.2)
### [`v0.29.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.29.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.29.0...v0.29.1)
##### 🐞 Bug Fixes
- Wait for optimized dependency to be bundled in non-pnpm package managers - by [@sheremet-va](https://togithub.com/sheremet-va) [(d2460)](https://togithub.com/vitest-dev/vitest/commit/d2460b7a)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.29.0...v0.29.1)
### [`v0.29.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.29.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.5...v0.29.0)
This release makes some significant changes to how tests are running. If you were using `--no-threads` before, you might consider enabling `--single-thread` instead (because your tests are now running in `child_process` instead of a worker thread) or try our new performance optimization feature (discussed later). If you were relying on API that was not available inside a worker (like `process.chdir()`, you can now use this option.
One of the potential breaking bug fixes is that environments do not share the same global scope anymore if you run them with `--no-isolate`, `--no-threads` or `--single-thread` - you might need to update your setup files if you were relying on a global variable before.
If you had performance issues on large code bases before, try the new [`deps.experimentalOptimizer`](https://vitest.dev/config/#deps-experimentaloptimizer) option instead of disabling threads. Feedback is welcome!
One of the breaking changes includes adding a link to snapshots inside snapshot files, meaning you will need to update all your snapshots.
##### 🚨 Breaking Changes
- Vitest as peer dependency for coverage packages - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2836](https://togithub.com/vitest-dev/vitest/issues/2836) [(94247)](https://togithub.com/vitest-dev/vitest/commit/94247f1b)
- Coverage-c8 to use V8 profiler directly instead of `NODE_V8_COVERAGE` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2786](https://togithub.com/vitest-dev/vitest/issues/2786) [(095c6)](https://togithub.com/vitest-dev/vitest/commit/095c6390)
- Add a link to the comment at the top of the snapshot file - by [@btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/2867](https://togithub.com/vitest-dev/vitest/issues/2867) [(615e1)](https://togithub.com/vitest-dev/vitest/commit/615e150b)
- Always run separate environments in isolation - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2860](https://togithub.com/vitest-dev/vitest/issues/2860) [(1f858)](https://togithub.com/vitest-dev/vitest/commit/1f858e0c)
- Tests with `node` and `jsdom` (and other environments) now don't share the same global scope, if you run them with `--no-isolate` or `--no-threads` flag. Vitest doesn't provide a way to restore the previous behavior as it is considered a bug.
- Use child_process when --no-threads is used - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2772](https://togithub.com/vitest-dev/vitest/issues/2772) [(7bf54)](https://togithub.com/vitest-dev/vitest/commit/7bf54505)
- Tests inside `chid_process` might run longer due to the communication overhead. If you want to restore the previous behavior, use `--single-thread`.
##### 🚀 Features
- Add test seed to banner - by [@btkostner](https://togithub.com/btkostner) in [https://github.com/vitest-dev/vitest/issues/2877](https://togithub.com/vitest-dev/vitest/issues/2877) [(bdb39)](https://togithub.com/vitest-dev/vitest/commit/bdb39569)
- Use custom source-map-support implementation - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2905](https://togithub.com/vitest-dev/vitest/issues/2905) [(6ff6c)](https://togithub.com/vitest-dev/vitest/commit/6ff6c6eb)
- Add an option to enable Vite optimizer - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2912](https://togithub.com/vitest-dev/vitest/issues/2912) [(af8de)](https://togithub.com/vitest-dev/vitest/commit/af8de362)
- **coverage**:
- Add support for coverage reporter options - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2690](https://togithub.com/vitest-dev/vitest/issues/2690) [(f8176)](https://togithub.com/vitest-dev/vitest/commit/f8176182)
- Automatic threshold updating - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2886](https://togithub.com/vitest-dev/vitest/issues/2886) [(e1652)](https://togithub.com/vitest-dev/vitest/commit/e1652163)
- **spy**:
- Implement mock.withImplementation API - by [@obadakhalili](https://togithub.com/obadakhalili) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2835](https://togithub.com/vitest-dev/vitest/issues/2835) [(610b1)](https://togithub.com/vitest-dev/vitest/commit/610b1d46)
- **vite-node**:
- Cli option for vite mode - by [@abarke](https://togithub.com/abarke) in [https://github.com/vitest-dev/vitest/issues/2893](https://togithub.com/vitest-dev/vitest/issues/2893) [(0fc08)](https://togithub.com/vitest-dev/vitest/commit/0fc08032)
##### 🐞 Bug Fixes
- Wait for console.log to print a message before terminating a worker - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2861](https://togithub.com/vitest-dev/vitest/issues/2861) [(fbc54)](https://togithub.com/vitest-dev/vitest/commit/fbc54c91)
- Cleanup last mocked cache when call vi.doMock - by [@mysteryven](https://togithub.com/mysteryven) in [https://github.com/vitest-dev/vitest/issues/2872](https://togithub.com/vitest-dev/vitest/issues/2872) [(65d71)](https://togithub.com/vitest-dev/vitest/commit/65d71b9e)
- Reload changed configuration file on watch mode - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2889](https://togithub.com/vitest-dev/vitest/issues/2889) [(4d277)](https://togithub.com/vitest-dev/vitest/commit/4d277d8d)
- **coverage**: Custom providers to work inside worker threads - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2817](https://togithub.com/vitest-dev/vitest/issues/2817) [(81604)](https://togithub.com/vitest-dev/vitest/commit/81604bce)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.5...v0.29.0)
### [`v0.28.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.5)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.4...v0.28.5)
##### 🚀 Features
- Add --script option to vite-node - by [@jgoux](https://togithub.com/jgoux) and [@dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/2793](https://togithub.com/vitest-dev/vitest/issues/2793) [(d3d6b)](https://togithub.com/vitest-dev/vitest/commit/d3d6b1fc)
- Inject executor directly into runner - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2858](https://togithub.com/vitest-dev/vitest/issues/2858) [(62c43)](https://togithub.com/vitest-dev/vitest/commit/62c43420)
##### 🐞 Bug Fixes
- Don't call "afterAll" hooks, if suite was skipped - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2802](https://togithub.com/vitest-dev/vitest/issues/2802) [(aa1aa)](https://togithub.com/vitest-dev/vitest/commit/aa1aa4da)
- Always display serialized error, even if it doesn't have stack - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2829](https://togithub.com/vitest-dev/vitest/issues/2829) [(ab5f8)](https://togithub.com/vitest-dev/vitest/commit/ab5f8927)
- Clear mocks between tests - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2857](https://togithub.com/vitest-dev/vitest/issues/2857) [(c420c)](https://togithub.com/vitest-dev/vitest/commit/c420cb7b)
- **expect**:
- Check for no 'throw' type in toHaveReturned - by [@trivikr](https://togithub.com/trivikr) in [https://github.com/vitest-dev/vitest/issues/2850](https://togithub.com/vitest-dev/vitest/issues/2850) [(1164c)](https://togithub.com/vitest-dev/vitest/commit/1164c478)
- Accept array index as number in toHaveProperty - by [@trivikr](https://togithub.com/trivikr) in [https://github.com/vitest-dev/vitest/issues/2808](https://togithub.com/vitest-dev/vitest/issues/2808) [(8705e)](https://togithub.com/vitest-dev/vitest/commit/8705e6b2)
##### 🏎 Performance
- Don't inline Vitest entry - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2819](https://togithub.com/vitest-dev/vitest/issues/2819) [(570c6)](https://togithub.com/vitest-dev/vitest/commit/570c639e)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.4...v0.28.5)
### [`v0.28.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.4)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.3...v0.28.4)
##### 🐞 Bug Fixes
- Setup correct utils inside asymmetric matchers - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2768](https://togithub.com/vitest-dev/vitest/issues/2768) [(415c8)](https://togithub.com/vitest-dev/vitest/commit/415c8a93)
- Cjs exports has Object.prototype instead of null - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2769](https://togithub.com/vitest-dev/vitest/issues/2769) [(4fc49)](https://togithub.com/vitest-dev/vitest/commit/4fc492c6)
- Duplicate callbacks in vite-node HMR - by [@jgoux](https://togithub.com/jgoux) in [https://github.com/vitest-dev/vitest/issues/2792](https://togithub.com/vitest-dev/vitest/issues/2792) [(f0333)](https://togithub.com/vitest-dev/vitest/commit/f03337ae)
- Do not include source files in `onWatcherStart` when `typecheck.ignoreSourceErrors` is true - by [@mascii](https://togithub.com/mascii) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2774](https://togithub.com/vitest-dev/vitest/issues/2774) [(d612e)](https://togithub.com/vitest-dev/vitest/commit/d612efdf)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.3...v0.28.4)
### [`v0.28.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.3)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.2...v0.28.3)
##### 🚀 Features
- Allow using atomics to communicate between threads - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2758](https://togithub.com/vitest-dev/vitest/issues/2758) [(3679c)](https://togithub.com/vitest-dev/vitest/commit/3679cf25)
- Show active filename pattern on CLI - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(a0455)](https://togithub.com/vitest-dev/vitest/commit/a0455917)
- Show active test name pattern on CLI - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(df7c4)](https://togithub.com/vitest-dev/vitest/commit/df7c410a)
- Allow `config` option to be false - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2749](https://togithub.com/vitest-dev/vitest/issues/2749) [(c66e3)](https://togithub.com/vitest-dev/vitest/commit/c66e335b)
##### 🐞 Bug Fixes
- Watch mode's filename pattern to persist on unrelated file changes - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(712ac)](https://togithub.com/vitest-dev/vitest/commit/712ac15b)
- Watch mode's filename pattern to persist re-run of failed tests, snapshot updates and testname filter changes - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(1c65a)](https://togithub.com/vitest-dev/vitest/commit/1c65ac48)
- Dont incorrectly mark run failed if filename pattern excludes previously failed tests - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(61cf9)](https://togithub.com/vitest-dev/vitest/commit/61cf9a7a)
- **coverage**: Istanbul crashes when no tests were run - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2753](https://togithub.com/vitest-dev/vitest/issues/2753) [(ebc95)](https://togithub.com/vitest-dev/vitest/commit/ebc95add)
##### 🏎 Performance
- Don't import vite in worker - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2759](https://togithub.com/vitest-dev/vitest/issues/2759) [(e49c1)](https://togithub.com/vitest-dev/vitest/commit/e49c13fa)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.2...v0.28.3)
### [`v0.28.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.1...v0.28.2)
##### 🐞 Bug Fixes
- Send stderr header log to stderr - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2736](https://togithub.com/vitest-dev/vitest/issues/2736) [(998ea)](https://togithub.com/vitest-dev/vitest/commit/998ea804)
- Call afterAll, if beforeAll failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2737](https://togithub.com/vitest-dev/vitest/issues/2737) [(1904c)](https://togithub.com/vitest-dev/vitest/commit/1904c9c4)
- **vite-node**: Don't cache modules with `timestamp: 0` - by [@danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/2747](https://togithub.com/vitest-dev/vitest/issues/2747) [(e88c0)](https://togithub.com/vitest-dev/vitest/commit/e88c04c4)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.1...v0.28.2)
### [`v0.28.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.0...v0.28.1)
##### 🐞 Bug Fixes
- Remove UI from Vitest dependencies - by [@sheremet-va](https://togithub.com/sheremet-va) [(b120c)](https://togithub.com/vitest-dev/vitest/commit/b120ca3f)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.0...v0.28.1)
### [`v0.28.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.3...v0.28.0)
##### 🚨 Breaking Changes
- Don't rely on environment for interopDefault - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2682](https://togithub.com/vitest-dev/vitest/issues/2682) [(3f20c)](https://togithub.com/vitest-dev/vitest/commit/3f20cf5a)
- Move test runner into a separate package - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2721](https://togithub.com/vitest-dev/vitest/issues/2721) [(482b7)](https://togithub.com/vitest-dev/vitest/commit/482b72fc)
- To extend text context, you need to augment `@vitet/runner` package instead of `vitest`
##### 🐞 Bug Fixes
- **coverage**: C8 to log warning when run in Stackblitz - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2735](https://togithub.com/vitest-dev/vitest/issues/2735) [(b6c41)](https://togithub.com/vitest-dev/vitest/commit/b6c41caa)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.3...v0.28.0)
### [`v0.27.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.3)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.2...v0.27.3)
##### 🚀 Features
- Throw unhandled exception, if code throws "error" event - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2691](https://togithub.com/vitest-dev/vitest/issues/2691) [(6a30c)](https://togithub.com/vitest-dev/vitest/commit/6a30cdd3)
- New `environmentMatchGlobs` option to auto infer env based on glob - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2714](https://togithub.com/vitest-dev/vitest/issues/2714) [(3e142)](https://togithub.com/vitest-dev/vitest/commit/3e1429e5)
- Add basic reporter which allow user to use reporter in ci - by [@trim21](https://togithub.com/trim21) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2612](https://togithub.com/vitest-dev/vitest/issues/2612) [(5df52)](https://togithub.com/vitest-dev/vitest/commit/5df522f7)
- Improve "isCI" check - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2705](https://togithub.com/vitest-dev/vitest/issues/2705) [(e6457)](https://togithub.com/vitest-dev/vitest/commit/e64570df)
##### 🐞 Bug Fixes
- Show error in the terminal, if "only" flag is used - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2696](https://togithub.com/vitest-dev/vitest/issues/2696) [(24d63)](https://togithub.com/vitest-dev/vitest/commit/24d63809)
- Cpu and heap profiling options for workers - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2702](https://togithub.com/vitest-dev/vitest/issues/2702) [(c31a0)](https://togithub.com/vitest-dev/vitest/commit/c31a0b20)
- Show correct number of tests in test summary - by [@poyoho](https://togithub.com/poyoho) in [https://github.com/vitest-dev/vitest/issues/2703](https://togithub.com/vitest-dev/vitest/issues/2703) [(859e7)](https://togithub.com/vitest-dev/vitest/commit/859e7f01)
- Don't terminate workers on Node 14 to not trigger fatal error - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2697](https://togithub.com/vitest-dev/vitest/issues/2697) [(db9b6)](https://togithub.com/vitest-dev/vitest/commit/db9b6bb7)
- Allow custom async matchers - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2707](https://togithub.com/vitest-dev/vitest/issues/2707) [(b5669)](https://togithub.com/vitest-dev/vitest/commit/b566912d)
- Remove setup files from coverage - by [@g4rry420](https://togithub.com/g4rry420) in [https://github.com/vitest-dev/vitest/issues/2574](https://togithub.com/vitest-dev/vitest/issues/2574) [(488e4)](https://togithub.com/vitest-dev/vitest/commit/488e4b9f)
- `reportCoverage` context can be optional - by [@antfu](https://togithub.com/antfu) [(4cd1e)](https://togithub.com/vitest-dev/vitest/commit/4cd1e5d7)
- ENOENT assets when htmldir exists - by [@everett1992](https://togithub.com/everett1992) in [https://github.com/vitest-dev/vitest/issues/2701](https://togithub.com/vitest-dev/vitest/issues/2701) [(5a656)](https://togithub.com/vitest-dev/vitest/commit/5a656753)
- Correctly resolve paths relative to root, when used outside of root directory - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2687](https://togithub.com/vitest-dev/vitest/issues/2687) [(703aa)](https://togithub.com/vitest-dev/vitest/commit/703aab46)
- **typecheck**: Store tmp tsconfig close to original one - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2660](https://togithub.com/vitest-dev/vitest/issues/2660) [(26f91)](https://togithub.com/vitest-dev/vitest/commit/26f915ad)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.2...v0.27.3)
### [`v0.27.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.1...v0.27.2)
##### 🚀 Features
- Add runAllTimersAsync from sinonjs - by [@guillaumeduboc](https://togithub.com/guillaumeduboc) in [https://github.com/vitest-dev/vitest/issues/2209](https://togithub.com/vitest-dev/vitest/issues/2209) [(40187)](https://togithub.com/vitest-dev/vitest/commit/40187bdb)
##### 🐞 Bug Fixes
- Document.defaultView references the same window as the global one - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2649](https://togithub.com/vitest-dev/vitest/issues/2649) [(1ac4b)](https://togithub.com/vitest-dev/vitest/commit/1ac4bb8d)
- Trim input filename and test name - by [@btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/2650](https://togithub.com/vitest-dev/vitest/issues/2650) [(d3dcb)](https://togithub.com/vitest-dev/vitest/commit/d3dcbdc8)
- Increase default teardownTimeout - by [@sheremet-va](https://togithub.com/sheremet-va) [(13e53)](https://togithub.com/vitest-dev/vitest/commit/13e53ac7)
- Mock css files imported with "require" - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2679](https://togithub.com/vitest-dev/vitest/issues/2679) [(6c1a2)](https://togithub.com/vitest-dev/vitest/commit/6c1a26a6)
- Don't start watching files in "run" mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2680](https://togithub.com/vitest-dev/vitest/issues/2680) [(0a31e)](https://togithub.com/vitest-dev/vitest/commit/0a31e85c)
- Rerun tests, when setup file is edited - by [@mysteryven](https://togithub.com/mysteryven) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2625](https://togithub.com/vitest-dev/vitest/issues/2625) [(019a6)](https://togithub.com/vitest-dev/vitest/commit/019a6d57)
- Always show filename for unhandled errors - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2689](https://togithub.com/vitest-dev/vitest/issues/2689) [(15aa0)](https://togithub.com/vitest-dev/vitest/commit/15aa0156)
- Define property instead of assigning it in vi.stubGlobal - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2685](https://togithub.com/vitest-dev/vitest/issues/2685) [(8a1d7)](https://togithub.com/vitest-dev/vitest/commit/8a1d7590)
- **coverage**: Watch mode to use `coverage.all` only when all tests are run - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2665](https://togithub.com/vitest-dev/vitest/issues/2665) [(85096)](https://togithub.com/vitest-dev/vitest/commit/85096281)
- **typecheck**: Log tests with verbose reporter, correctly show "pass" tests - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2656](https://togithub.com/vitest-dev/vitest/issues/2656) [(61dde)](https://togithub.com/vitest-dev/vitest/commit/61ddebae)
- **ui**: Don't show "connecting" screen in html reporter - by [@poyoho](https://togithub.com/poyoho) in [https://github.com/vitest-dev/vitest/issues/2693](https://togithub.com/vitest-dev/vitest/issues/2693) [(d8548)](https://togithub.com/vitest-dev/vitest/commit/d8548c69)
##### 🏎 Performance
- Don't resolve import path, if it was already resolved - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2659](https://togithub.com/vitest-dev/vitest/issues/2659) [(45cc3)](https://togithub.com/vitest-dev/vitest/commit/45cc3423)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.1...v0.27.2)
### [`v0.27.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.0...v0.27.1)
##### 🚀 Features
- Show error, when process.exit is called - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2643](https://togithub.com/vitest-dev/vitest/issues/2643) [(866f4)](https://togithub.com/vitest-dev/vitest/commit/866f4494)
- Add more information about unhandler error - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2642](https://togithub.com/vitest-dev/vitest/issues/2642) [(1ffb0)](https://togithub.com/vitest-dev/vitest/commit/1ffb0ef5)
- Display running processes, if vitest closes with timeout - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2633](https://togithub.com/vitest-dev/vitest/issues/2633) [(94968)](https://togithub.com/vitest-dev/vitest/commit/94968a6f)
##### 🐞 Bug Fixes
- Type issue with spyOn method - by [@samkevin1](https://togithub.com/samkevin1) in [https://github.com/vitest-dev/vitest/issues/2365](https://togithub.com/vitest-dev/vitest/issues/2365) and [https://github.com/vitest-dev/vitest/issues/2582](https://togithub.com/vitest-dev/vitest/issues/2582) [(1aaa7)](https://togithub.com/vitest-dev/vitest/commit/1aaa79d7)
- Add missing types in TS project when global is true - by [@Sneaken](https://togithub.com/Sneaken) in [https://github.com/vitest-dev/vitest/issues/2631](https://togithub.com/vitest-dev/vitest/issues/2631) [(4745e)](https://togithub.com/vitest-dev/vitest/commit/4745eaa2)
- Always report failed test in junit reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2632](https://togithub.com/vitest-dev/vitest/issues/2632) [(83da2)](https://togithub.com/vitest-dev/vitest/commit/83da2ec4)
- Change Vite root, if test.root is used - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2637](https://togithub.com/vitest-dev/vitest/issues/2637) [(efbff)](https://togithub.com/vitest-dev/vitest/commit/efbff2a2)
- Don't use ownKeys, when interoping a module - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2629](https://togithub.com/vitest-dev/vitest/issues/2629) [(a186a)](https://togithub.com/vitest-dev/vitest/commit/a186a7e1)
- Cut duplicate error in negated toHaveBeenCalled - by [@richardboehme](https://togithub.com/richardboehme) in [https://github.com/vitest-dev/vitest/issues/2638](https://togithub.com/vitest-dev/vitest/issues/2638) [(09d62)](https://togithub.com/vitest-dev/vitest/commit/09d62226)
- Always update last HMR ms on a module - by [@sheremet-va](https://togithub.com/sheremet-va) [(99676)](https://togithub.com/vitest-dev/vitest/commit/9967645a)
- Terminate workers, when closing process - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2645](https://togithub.com/vitest-dev/vitest/issues/2645) [(ece43)](https://togithub.com/vitest-dev/vitest/commit/ece434a3)
- **coverage**:
- Prevent c8 from crashing on invalid sourcemaps - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2634](https://togithub.com/vitest-dev/vitest/issues/2634) [(0163d)](https://togithub.com/vitest-dev/vitest/commit/0163dc80)
- Istanbul provider to use `coverage.extension` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2641](https://togithub.com/vitest-dev/vitest/issues/2641) [(7e388)](https://togithub.com/vitest-dev/vitest/commit/7e388903)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.0...v0.27.1)
### [`v0.27.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.3...v0.27.0)
##### 🚨 Breaking Changes
- Deprecate "error" on result, store errors in "errors" - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2586](https://togithub.com/vitest-dev/vitest/issues/2586) [(e641a)](https://togithub.com/vitest-dev/vitest/commit/e641a110)
- Split vitest into separate packages, but still bundle them for the time being - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2575](https://togithub.com/vitest-dev/vitest/issues/2575) [(c8e6f)](https://togithub.com/vitest-dev/vitest/commit/c8e6fb69)
##### 🚀 Features
- **coverage**: report only changed files when using istanbul coverage with watch mode - by [@g4rry420](https://togithub.com/g4rry420) in [https://github.com/vitest-dev/vitest/issues/2385](https://togithub.com/vitest-dev/vitest/issues/2385) [(bf872)](https://togithub.com/vitest-dev/vitest/commit/bf87282c)
##### 🐞 Bug Fixes
- Return mock path only when mocked - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2619](https://togithub.com/vitest-dev/vitest/issues/2619) [(f8ac2)](https://togithub.com/vitest-dev/vitest/commit/f8ac2094)
- Allow mocking CJS module with interoped default - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2598](https://togithub.com/vitest-dev/vitest/issues/2598) [(6b3e3)](https://togithub.com/vitest-dev/vitest/commit/6b3e36d4)
- Avoid random ENOTEMPTY errors - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2620](https://togithub.com/vitest-dev/vitest/issues/2620) [(59766)](https://togithub.com/vitest-dev/vitest/commit/59766fa4)
- Always inline assets and modules with special Vite queries - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2617](https://togithub.com/vitest-dev/vitest/issues/2617) [(fed1c)](https://togithub.com/vitest-dev/vitest/commit/fed1cd60)
- **cli**:
- Allow overrides reporter via cli option - by [@mysteryven](https://togithub.com/mysteryven) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2573](https://togithub.com/vitest-dev/vitest/issues/2573) [(894f1)](https://togithub.com/vitest-dev/vitest/commit/894f155a)
- **coverage**:
- Flaky c8 coverage caused by parallel sourcemap constructing - by [@AriPerkkio](https://togithub.com/AriPerkkio) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2591](https://togithub.com/vitest-dev/vitest/issues/2591) [(9a29f)](https://togithub.com/vitest-dev/vitest/commit/9a29f984)
- Validate extension, when reporting c8 coverage - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2626](https://togithub.com/vitest-dev/vitest/issues/2626) [(74463)](https://togithub.com/vitest-dev/vitest/commit/7446370c)
##### 🏎 Performance
- Improve vi.mock performance - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2594](https://togithub.com/vitest-dev/vitest/issues/2594) [(09d19)](https://togithub.com/vitest-dev/vitest/commit/09d19892)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.3...v0.27.0)
### [`v0.26.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.3)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.2...v0.26.3)
##### 🚀 Features
- **mock**: Expose a `importOriginal` helper to the factory - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2551](https://togithub.com/vitest-dev/vitest/issues/2551) [(853ee)](https://togithub.com/vitest-dev/vitest/commit/853eeddb)
##### 🐞 Bug Fixes
- Correctly automock nested interoped defaults - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2559](https://togithub.com/vitest-dev/vitest/issues/2559) [(a431d)](https://togithub.com/vitest-dev/vitest/commit/a431df80)
- Start tracking module resolution as soon as possible for easier tracking - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2560](https://togithub.com/vitest-dev/vitest/issues/2560) [(9f41e)](https://togithub.com/vitest-dev/vitest/commit/9f41edda)
- Don't hang when mocking module with circular dependency - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2572](https://togithub.com/vitest-dev/vitest/issues/2572) [(c479d)](https://togithub.com/vitest-dev/vitest/commit/c479d9c0)
- Show list of tests when typechecking - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2585](https://togithub.com/vitest-dev/vitest/issues/2585) [(32a57)](https://togithub.com/vitest-dev/vitest/commit/32a577b1)
- **api**: Make api parse error stacks and return sourcePos in onTaskUpdate - by [@adrienbaron](https://togithub.com/adrienbaron) in [https://github.com/vitest-dev/vitest/issues/2563](https://togithub.com/vitest-dev/vitest/issues/2563) [(ef77d)](https://togithub.com/vitest-dev/vitest/commit/ef77dccf)
- **coverage**: Env-replacer to remove query params from sourcemaps filenames - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2584](https://togithub.com/vitest-dev/vitest/issues/2584) [(dba13)](https://togithub.com/vitest-dev/vitest/commit/dba13374)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.2...v0.26.3)
### [`v0.26.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.1...v0.26.2)
##### 🚀 Features
- Project name - by [@antfu](https://togithub.com/antfu) [(84f98)](https://togithub.com/vitest-dev/vitest/commit/84f98e70)
##### 🐞 Bug Fixes
- Improve "isInternaRequest" check - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2541](https://togithub.com/vitest-dev/vitest/issues/2541) [(2bb9a)](https://togithub.com/vitest-dev/vitest/commit/2bb9a391)
- Use correct word when printing "long-running" warning - by [@simon-abbott](https://togithub.com/simon-abbott) in [https://github.com/vitest-dev/vitest/issues/2546](https://togithub.com/vitest-dev/vitest/issues/2546) [(8dc1c)](https://togithub.com/vitest-dev/vitest/commit/8dc1c3cb)
- Pass down diff options - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2545](https://togithub.com/vitest-dev/vitest/issues/2545) [(98c94)](https://togithub.com/vitest-dev/vitest/commit/98c94e65)
- **cli**: Respect inline config `dir` - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2550](https://togithub.com/vitest-dev/vitest/issues/2550) [(f6b59)](https://togithub.com/vitest-dev/vitest/commit/f6b592a9)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.1...v0.26.2)
### [`v0.26.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.0...v0.26.1)
##### 🚀 Features
- Add more options to configure diff output - by [@sheremet-va](https://togithub.com/sheremet-va) and [@dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/2522](https://togithub.com/vitest-dev/vitest/issues/2522) [(7ae14)](https://togithub.com/vitest-dev/vitest/commit/7ae1417f)
##### 🐞 Bug Fixes
- Don't resolve builtin Node modules - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2538](https://togithub.com/vitest-dev/vitest/issues/2538) [(1cbc2)](https://togithub.com/vitest-dev/vitest/commit/1cbc24dc)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.0...v0.26.1)
### [`v0.26.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.25.8...v0.26.0)
##### 🚨 Breaking Changes
- **vite-node:** Rewrite how vite-node resolves id - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2463](https://togithub.com/vitest-dev/vitest/issues/2463) [(58ee8)](https://togithub.com/vitest-dev/vitest/commit/58ee8e9b)
- Correctly interop nested default for external and inlined modules - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2512](https://togithub.com/vitest-dev/vitest/issues/2512) [(084e9)](https://togithub.com/vitest-dev/vitest/commit/084e929c)
- If your environment is `node`, Vitest will not resolve invalid named exports (exports that are on "default" property will not magically appear as named exports), unless `deps.interopDefault` is enabled, or dependency is in `deps.inline`. This change doesn't affect `jsdom`, `happy-dom` or `edge` environments.
- **web-worker:** Make web-worker implementation more compatible with spec - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2431](https://togithub.com/vitest-dev/vitest/issues/2431) [(c3a63)](https://togithub.com/vitest-dev/vitest/commit/c3a63524)
- Messages are now cloned with `structuredClone`, if it's available, or fallbacks to a polyfill.
- Added support for `SharedWorker`
##### 🚀 Features
- Introduce a native way to set env and globals - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2515](https://togithub.com/vitest-dev/vitest/issues/2515) [(b114d)](https://togithub.com/vitest-dev/vitest/commit/b114d49f)
- Add html reporter based on Vitest UI - by [@poyoho](https://togithub.com/poyoho) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2444](https://togithub.com/vitest-dev/vitest/issues/2444) [(b8f34)](https://togithub.com/vitest-dev/vitest/commit/b8f34eb8)
- If you have `@vitest/ui` installed, you can now use `'html'` reporter to get a [beautiful UI](https://vitest.dev/guide/ui.html) to view your test results, inspect module graph and read log messages.
##### 🐞 Bug Fixes
- Allow assigning new hotContext - by [@cometkim](https://togithub.com/cometkim) in [https://github.com/vitest-dev/vitest/issues/2524](https://togithub.com/vitest-dev/vitest/issues/2524) [(b4c43)](https://togithub.com/vitest-dev/vitest/commit/b4c43cd5)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.25.8...v0.26.0)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^0.25.0
->^0.29.0
Release Notes
vitest-dev/vitest
### [`v0.29.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.29.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.29.1...v0.29.2) ##### 🐞 Bug Fixes - Optimize dependencies in setup files - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2935](https://togithub.com/vitest-dev/vitest/issues/2935) [(c169f)](https://togithub.com/vitest-dev/vitest/commit/c169f980) - **coverage**: C8 provider to work when isolate:false - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2929](https://togithub.com/vitest-dev/vitest/issues/2929) [(86538)](https://togithub.com/vitest-dev/vitest/commit/8653830b) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.29.1...v0.29.2) ### [`v0.29.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.29.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.29.0...v0.29.1) ##### 🐞 Bug Fixes - Wait for optimized dependency to be bundled in non-pnpm package managers - by [@sheremet-va](https://togithub.com/sheremet-va) [(d2460)](https://togithub.com/vitest-dev/vitest/commit/d2460b7a) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.29.0...v0.29.1) ### [`v0.29.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.29.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.5...v0.29.0) This release makes some significant changes to how tests are running. If you were using `--no-threads` before, you might consider enabling `--single-thread` instead (because your tests are now running in `child_process` instead of a worker thread) or try our new performance optimization feature (discussed later). If you were relying on API that was not available inside a worker (like `process.chdir()`, you can now use this option. One of the potential breaking bug fixes is that environments do not share the same global scope anymore if you run them with `--no-isolate`, `--no-threads` or `--single-thread` - you might need to update your setup files if you were relying on a global variable before. If you had performance issues on large code bases before, try the new [`deps.experimentalOptimizer`](https://vitest.dev/config/#deps-experimentaloptimizer) option instead of disabling threads. Feedback is welcome! One of the breaking changes includes adding a link to snapshots inside snapshot files, meaning you will need to update all your snapshots. ##### 🚨 Breaking Changes - Vitest as peer dependency for coverage packages - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2836](https://togithub.com/vitest-dev/vitest/issues/2836) [(94247)](https://togithub.com/vitest-dev/vitest/commit/94247f1b) - Coverage-c8 to use V8 profiler directly instead of `NODE_V8_COVERAGE` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2786](https://togithub.com/vitest-dev/vitest/issues/2786) [(095c6)](https://togithub.com/vitest-dev/vitest/commit/095c6390) - Add a link to the comment at the top of the snapshot file - by [@btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/2867](https://togithub.com/vitest-dev/vitest/issues/2867) [(615e1)](https://togithub.com/vitest-dev/vitest/commit/615e150b) - Always run separate environments in isolation - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2860](https://togithub.com/vitest-dev/vitest/issues/2860) [(1f858)](https://togithub.com/vitest-dev/vitest/commit/1f858e0c) - Tests with `node` and `jsdom` (and other environments) now don't share the same global scope, if you run them with `--no-isolate` or `--no-threads` flag. Vitest doesn't provide a way to restore the previous behavior as it is considered a bug. - Use child_process when --no-threads is used - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2772](https://togithub.com/vitest-dev/vitest/issues/2772) [(7bf54)](https://togithub.com/vitest-dev/vitest/commit/7bf54505) - Tests inside `chid_process` might run longer due to the communication overhead. If you want to restore the previous behavior, use `--single-thread`. ##### 🚀 Features - Add test seed to banner - by [@btkostner](https://togithub.com/btkostner) in [https://github.com/vitest-dev/vitest/issues/2877](https://togithub.com/vitest-dev/vitest/issues/2877) [(bdb39)](https://togithub.com/vitest-dev/vitest/commit/bdb39569) - Use custom source-map-support implementation - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2905](https://togithub.com/vitest-dev/vitest/issues/2905) [(6ff6c)](https://togithub.com/vitest-dev/vitest/commit/6ff6c6eb) - Add an option to enable Vite optimizer - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2912](https://togithub.com/vitest-dev/vitest/issues/2912) [(af8de)](https://togithub.com/vitest-dev/vitest/commit/af8de362) - **coverage**: - Add support for coverage reporter options - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2690](https://togithub.com/vitest-dev/vitest/issues/2690) [(f8176)](https://togithub.com/vitest-dev/vitest/commit/f8176182) - Automatic threshold updating - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2886](https://togithub.com/vitest-dev/vitest/issues/2886) [(e1652)](https://togithub.com/vitest-dev/vitest/commit/e1652163) - **spy**: - Implement mock.withImplementation API - by [@obadakhalili](https://togithub.com/obadakhalili) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2835](https://togithub.com/vitest-dev/vitest/issues/2835) [(610b1)](https://togithub.com/vitest-dev/vitest/commit/610b1d46) - **vite-node**: - Cli option for vite mode - by [@abarke](https://togithub.com/abarke) in [https://github.com/vitest-dev/vitest/issues/2893](https://togithub.com/vitest-dev/vitest/issues/2893) [(0fc08)](https://togithub.com/vitest-dev/vitest/commit/0fc08032) ##### 🐞 Bug Fixes - Wait for console.log to print a message before terminating a worker - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2861](https://togithub.com/vitest-dev/vitest/issues/2861) [(fbc54)](https://togithub.com/vitest-dev/vitest/commit/fbc54c91) - Cleanup last mocked cache when call vi.doMock - by [@mysteryven](https://togithub.com/mysteryven) in [https://github.com/vitest-dev/vitest/issues/2872](https://togithub.com/vitest-dev/vitest/issues/2872) [(65d71)](https://togithub.com/vitest-dev/vitest/commit/65d71b9e) - Reload changed configuration file on watch mode - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2889](https://togithub.com/vitest-dev/vitest/issues/2889) [(4d277)](https://togithub.com/vitest-dev/vitest/commit/4d277d8d) - **coverage**: Custom providers to work inside worker threads - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2817](https://togithub.com/vitest-dev/vitest/issues/2817) [(81604)](https://togithub.com/vitest-dev/vitest/commit/81604bce) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.5...v0.29.0) ### [`v0.28.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.5) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.4...v0.28.5) ##### 🚀 Features - Add --script option to vite-node - by [@jgoux](https://togithub.com/jgoux) and [@dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/2793](https://togithub.com/vitest-dev/vitest/issues/2793) [(d3d6b)](https://togithub.com/vitest-dev/vitest/commit/d3d6b1fc) - Inject executor directly into runner - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2858](https://togithub.com/vitest-dev/vitest/issues/2858) [(62c43)](https://togithub.com/vitest-dev/vitest/commit/62c43420) ##### 🐞 Bug Fixes - Don't call "afterAll" hooks, if suite was skipped - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2802](https://togithub.com/vitest-dev/vitest/issues/2802) [(aa1aa)](https://togithub.com/vitest-dev/vitest/commit/aa1aa4da) - Always display serialized error, even if it doesn't have stack - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2829](https://togithub.com/vitest-dev/vitest/issues/2829) [(ab5f8)](https://togithub.com/vitest-dev/vitest/commit/ab5f8927) - Clear mocks between tests - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2857](https://togithub.com/vitest-dev/vitest/issues/2857) [(c420c)](https://togithub.com/vitest-dev/vitest/commit/c420cb7b) - **expect**: - Check for no 'throw' type in toHaveReturned - by [@trivikr](https://togithub.com/trivikr) in [https://github.com/vitest-dev/vitest/issues/2850](https://togithub.com/vitest-dev/vitest/issues/2850) [(1164c)](https://togithub.com/vitest-dev/vitest/commit/1164c478) - Accept array index as number in toHaveProperty - by [@trivikr](https://togithub.com/trivikr) in [https://github.com/vitest-dev/vitest/issues/2808](https://togithub.com/vitest-dev/vitest/issues/2808) [(8705e)](https://togithub.com/vitest-dev/vitest/commit/8705e6b2) ##### 🏎 Performance - Don't inline Vitest entry - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2819](https://togithub.com/vitest-dev/vitest/issues/2819) [(570c6)](https://togithub.com/vitest-dev/vitest/commit/570c639e) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.4...v0.28.5) ### [`v0.28.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.3...v0.28.4) ##### 🐞 Bug Fixes - Setup correct utils inside asymmetric matchers - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2768](https://togithub.com/vitest-dev/vitest/issues/2768) [(415c8)](https://togithub.com/vitest-dev/vitest/commit/415c8a93) - Cjs exports has Object.prototype instead of null - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2769](https://togithub.com/vitest-dev/vitest/issues/2769) [(4fc49)](https://togithub.com/vitest-dev/vitest/commit/4fc492c6) - Duplicate callbacks in vite-node HMR - by [@jgoux](https://togithub.com/jgoux) in [https://github.com/vitest-dev/vitest/issues/2792](https://togithub.com/vitest-dev/vitest/issues/2792) [(f0333)](https://togithub.com/vitest-dev/vitest/commit/f03337ae) - Do not include source files in `onWatcherStart` when `typecheck.ignoreSourceErrors` is true - by [@mascii](https://togithub.com/mascii) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2774](https://togithub.com/vitest-dev/vitest/issues/2774) [(d612e)](https://togithub.com/vitest-dev/vitest/commit/d612efdf) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.3...v0.28.4) ### [`v0.28.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.2...v0.28.3) ##### 🚀 Features - Allow using atomics to communicate between threads - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2758](https://togithub.com/vitest-dev/vitest/issues/2758) [(3679c)](https://togithub.com/vitest-dev/vitest/commit/3679cf25) - Show active filename pattern on CLI - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(a0455)](https://togithub.com/vitest-dev/vitest/commit/a0455917) - Show active test name pattern on CLI - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(df7c4)](https://togithub.com/vitest-dev/vitest/commit/df7c410a) - Allow `config` option to be false - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2749](https://togithub.com/vitest-dev/vitest/issues/2749) [(c66e3)](https://togithub.com/vitest-dev/vitest/commit/c66e335b) ##### 🐞 Bug Fixes - Watch mode's filename pattern to persist on unrelated file changes - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(712ac)](https://togithub.com/vitest-dev/vitest/commit/712ac15b) - Watch mode's filename pattern to persist re-run of failed tests, snapshot updates and testname filter changes - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(1c65a)](https://togithub.com/vitest-dev/vitest/commit/1c65ac48) - Dont incorrectly mark run failed if filename pattern excludes previously failed tests - by [@AriPerkkio](https://togithub.com/AriPerkkio) [(61cf9)](https://togithub.com/vitest-dev/vitest/commit/61cf9a7a) - **coverage**: Istanbul crashes when no tests were run - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2753](https://togithub.com/vitest-dev/vitest/issues/2753) [(ebc95)](https://togithub.com/vitest-dev/vitest/commit/ebc95add) ##### 🏎 Performance - Don't import vite in worker - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2759](https://togithub.com/vitest-dev/vitest/issues/2759) [(e49c1)](https://togithub.com/vitest-dev/vitest/commit/e49c13fa) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.2...v0.28.3) ### [`v0.28.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.1...v0.28.2) ##### 🐞 Bug Fixes - Send stderr header log to stderr - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2736](https://togithub.com/vitest-dev/vitest/issues/2736) [(998ea)](https://togithub.com/vitest-dev/vitest/commit/998ea804) - Call afterAll, if beforeAll failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2737](https://togithub.com/vitest-dev/vitest/issues/2737) [(1904c)](https://togithub.com/vitest-dev/vitest/commit/1904c9c4) - **vite-node**: Don't cache modules with `timestamp: 0` - by [@danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/2747](https://togithub.com/vitest-dev/vitest/issues/2747) [(e88c0)](https://togithub.com/vitest-dev/vitest/commit/e88c04c4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.1...v0.28.2) ### [`v0.28.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.28.0...v0.28.1) ##### 🐞 Bug Fixes - Remove UI from Vitest dependencies - by [@sheremet-va](https://togithub.com/sheremet-va) [(b120c)](https://togithub.com/vitest-dev/vitest/commit/b120ca3f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.28.0...v0.28.1) ### [`v0.28.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.28.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.3...v0.28.0) ##### 🚨 Breaking Changes - Don't rely on environment for interopDefault - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2682](https://togithub.com/vitest-dev/vitest/issues/2682) [(3f20c)](https://togithub.com/vitest-dev/vitest/commit/3f20cf5a) - Move test runner into a separate package - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2721](https://togithub.com/vitest-dev/vitest/issues/2721) [(482b7)](https://togithub.com/vitest-dev/vitest/commit/482b72fc) - To extend text context, you need to augment `@vitet/runner` package instead of `vitest` ##### 🐞 Bug Fixes - **coverage**: C8 to log warning when run in Stackblitz - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2735](https://togithub.com/vitest-dev/vitest/issues/2735) [(b6c41)](https://togithub.com/vitest-dev/vitest/commit/b6c41caa) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.3...v0.28.0) ### [`v0.27.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.2...v0.27.3) ##### 🚀 Features - Throw unhandled exception, if code throws "error" event - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2691](https://togithub.com/vitest-dev/vitest/issues/2691) [(6a30c)](https://togithub.com/vitest-dev/vitest/commit/6a30cdd3) - New `environmentMatchGlobs` option to auto infer env based on glob - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2714](https://togithub.com/vitest-dev/vitest/issues/2714) [(3e142)](https://togithub.com/vitest-dev/vitest/commit/3e1429e5) - Add basic reporter which allow user to use reporter in ci - by [@trim21](https://togithub.com/trim21) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2612](https://togithub.com/vitest-dev/vitest/issues/2612) [(5df52)](https://togithub.com/vitest-dev/vitest/commit/5df522f7) - Improve "isCI" check - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2705](https://togithub.com/vitest-dev/vitest/issues/2705) [(e6457)](https://togithub.com/vitest-dev/vitest/commit/e64570df) ##### 🐞 Bug Fixes - Show error in the terminal, if "only" flag is used - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2696](https://togithub.com/vitest-dev/vitest/issues/2696) [(24d63)](https://togithub.com/vitest-dev/vitest/commit/24d63809) - Cpu and heap profiling options for workers - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2702](https://togithub.com/vitest-dev/vitest/issues/2702) [(c31a0)](https://togithub.com/vitest-dev/vitest/commit/c31a0b20) - Show correct number of tests in test summary - by [@poyoho](https://togithub.com/poyoho) in [https://github.com/vitest-dev/vitest/issues/2703](https://togithub.com/vitest-dev/vitest/issues/2703) [(859e7)](https://togithub.com/vitest-dev/vitest/commit/859e7f01) - Don't terminate workers on Node 14 to not trigger fatal error - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2697](https://togithub.com/vitest-dev/vitest/issues/2697) [(db9b6)](https://togithub.com/vitest-dev/vitest/commit/db9b6bb7) - Allow custom async matchers - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2707](https://togithub.com/vitest-dev/vitest/issues/2707) [(b5669)](https://togithub.com/vitest-dev/vitest/commit/b566912d) - Remove setup files from coverage - by [@g4rry420](https://togithub.com/g4rry420) in [https://github.com/vitest-dev/vitest/issues/2574](https://togithub.com/vitest-dev/vitest/issues/2574) [(488e4)](https://togithub.com/vitest-dev/vitest/commit/488e4b9f) - `reportCoverage` context can be optional - by [@antfu](https://togithub.com/antfu) [(4cd1e)](https://togithub.com/vitest-dev/vitest/commit/4cd1e5d7) - ENOENT assets when htmldir exists - by [@everett1992](https://togithub.com/everett1992) in [https://github.com/vitest-dev/vitest/issues/2701](https://togithub.com/vitest-dev/vitest/issues/2701) [(5a656)](https://togithub.com/vitest-dev/vitest/commit/5a656753) - Correctly resolve paths relative to root, when used outside of root directory - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2687](https://togithub.com/vitest-dev/vitest/issues/2687) [(703aa)](https://togithub.com/vitest-dev/vitest/commit/703aab46) - **typecheck**: Store tmp tsconfig close to original one - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2660](https://togithub.com/vitest-dev/vitest/issues/2660) [(26f91)](https://togithub.com/vitest-dev/vitest/commit/26f915ad) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.2...v0.27.3) ### [`v0.27.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.1...v0.27.2) ##### 🚀 Features - Add runAllTimersAsync from sinonjs - by [@guillaumeduboc](https://togithub.com/guillaumeduboc) in [https://github.com/vitest-dev/vitest/issues/2209](https://togithub.com/vitest-dev/vitest/issues/2209) [(40187)](https://togithub.com/vitest-dev/vitest/commit/40187bdb) ##### 🐞 Bug Fixes - Document.defaultView references the same window as the global one - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2649](https://togithub.com/vitest-dev/vitest/issues/2649) [(1ac4b)](https://togithub.com/vitest-dev/vitest/commit/1ac4bb8d) - Trim input filename and test name - by [@btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/2650](https://togithub.com/vitest-dev/vitest/issues/2650) [(d3dcb)](https://togithub.com/vitest-dev/vitest/commit/d3dcbdc8) - Increase default teardownTimeout - by [@sheremet-va](https://togithub.com/sheremet-va) [(13e53)](https://togithub.com/vitest-dev/vitest/commit/13e53ac7) - Mock css files imported with "require" - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2679](https://togithub.com/vitest-dev/vitest/issues/2679) [(6c1a2)](https://togithub.com/vitest-dev/vitest/commit/6c1a26a6) - Don't start watching files in "run" mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2680](https://togithub.com/vitest-dev/vitest/issues/2680) [(0a31e)](https://togithub.com/vitest-dev/vitest/commit/0a31e85c) - Rerun tests, when setup file is edited - by [@mysteryven](https://togithub.com/mysteryven) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2625](https://togithub.com/vitest-dev/vitest/issues/2625) [(019a6)](https://togithub.com/vitest-dev/vitest/commit/019a6d57) - Always show filename for unhandled errors - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2689](https://togithub.com/vitest-dev/vitest/issues/2689) [(15aa0)](https://togithub.com/vitest-dev/vitest/commit/15aa0156) - Define property instead of assigning it in vi.stubGlobal - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2685](https://togithub.com/vitest-dev/vitest/issues/2685) [(8a1d7)](https://togithub.com/vitest-dev/vitest/commit/8a1d7590) - **coverage**: Watch mode to use `coverage.all` only when all tests are run - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2665](https://togithub.com/vitest-dev/vitest/issues/2665) [(85096)](https://togithub.com/vitest-dev/vitest/commit/85096281) - **typecheck**: Log tests with verbose reporter, correctly show "pass" tests - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2656](https://togithub.com/vitest-dev/vitest/issues/2656) [(61dde)](https://togithub.com/vitest-dev/vitest/commit/61ddebae) - **ui**: Don't show "connecting" screen in html reporter - by [@poyoho](https://togithub.com/poyoho) in [https://github.com/vitest-dev/vitest/issues/2693](https://togithub.com/vitest-dev/vitest/issues/2693) [(d8548)](https://togithub.com/vitest-dev/vitest/commit/d8548c69) ##### 🏎 Performance - Don't resolve import path, if it was already resolved - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2659](https://togithub.com/vitest-dev/vitest/issues/2659) [(45cc3)](https://togithub.com/vitest-dev/vitest/commit/45cc3423) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.1...v0.27.2) ### [`v0.27.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.27.0...v0.27.1) ##### 🚀 Features - Show error, when process.exit is called - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2643](https://togithub.com/vitest-dev/vitest/issues/2643) [(866f4)](https://togithub.com/vitest-dev/vitest/commit/866f4494) - Add more information about unhandler error - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2642](https://togithub.com/vitest-dev/vitest/issues/2642) [(1ffb0)](https://togithub.com/vitest-dev/vitest/commit/1ffb0ef5) - Display running processes, if vitest closes with timeout - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2633](https://togithub.com/vitest-dev/vitest/issues/2633) [(94968)](https://togithub.com/vitest-dev/vitest/commit/94968a6f) ##### 🐞 Bug Fixes - Type issue with spyOn method - by [@samkevin1](https://togithub.com/samkevin1) in [https://github.com/vitest-dev/vitest/issues/2365](https://togithub.com/vitest-dev/vitest/issues/2365) and [https://github.com/vitest-dev/vitest/issues/2582](https://togithub.com/vitest-dev/vitest/issues/2582) [(1aaa7)](https://togithub.com/vitest-dev/vitest/commit/1aaa79d7) - Add missing types in TS project when global is true - by [@Sneaken](https://togithub.com/Sneaken) in [https://github.com/vitest-dev/vitest/issues/2631](https://togithub.com/vitest-dev/vitest/issues/2631) [(4745e)](https://togithub.com/vitest-dev/vitest/commit/4745eaa2) - Always report failed test in junit reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2632](https://togithub.com/vitest-dev/vitest/issues/2632) [(83da2)](https://togithub.com/vitest-dev/vitest/commit/83da2ec4) - Change Vite root, if test.root is used - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2637](https://togithub.com/vitest-dev/vitest/issues/2637) [(efbff)](https://togithub.com/vitest-dev/vitest/commit/efbff2a2) - Don't use ownKeys, when interoping a module - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2629](https://togithub.com/vitest-dev/vitest/issues/2629) [(a186a)](https://togithub.com/vitest-dev/vitest/commit/a186a7e1) - Cut duplicate error in negated toHaveBeenCalled - by [@richardboehme](https://togithub.com/richardboehme) in [https://github.com/vitest-dev/vitest/issues/2638](https://togithub.com/vitest-dev/vitest/issues/2638) [(09d62)](https://togithub.com/vitest-dev/vitest/commit/09d62226) - Always update last HMR ms on a module - by [@sheremet-va](https://togithub.com/sheremet-va) [(99676)](https://togithub.com/vitest-dev/vitest/commit/9967645a) - Terminate workers, when closing process - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2645](https://togithub.com/vitest-dev/vitest/issues/2645) [(ece43)](https://togithub.com/vitest-dev/vitest/commit/ece434a3) - **coverage**: - Prevent c8 from crashing on invalid sourcemaps - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2634](https://togithub.com/vitest-dev/vitest/issues/2634) [(0163d)](https://togithub.com/vitest-dev/vitest/commit/0163dc80) - Istanbul provider to use `coverage.extension` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2641](https://togithub.com/vitest-dev/vitest/issues/2641) [(7e388)](https://togithub.com/vitest-dev/vitest/commit/7e388903) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.27.0...v0.27.1) ### [`v0.27.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.27.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.3...v0.27.0) ##### 🚨 Breaking Changes - Deprecate "error" on result, store errors in "errors" - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2586](https://togithub.com/vitest-dev/vitest/issues/2586) [(e641a)](https://togithub.com/vitest-dev/vitest/commit/e641a110) - Split vitest into separate packages, but still bundle them for the time being - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2575](https://togithub.com/vitest-dev/vitest/issues/2575) [(c8e6f)](https://togithub.com/vitest-dev/vitest/commit/c8e6fb69) ##### 🚀 Features - **coverage**: report only changed files when using istanbul coverage with watch mode - by [@g4rry420](https://togithub.com/g4rry420) in [https://github.com/vitest-dev/vitest/issues/2385](https://togithub.com/vitest-dev/vitest/issues/2385) [(bf872)](https://togithub.com/vitest-dev/vitest/commit/bf87282c) ##### 🐞 Bug Fixes - Return mock path only when mocked - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2619](https://togithub.com/vitest-dev/vitest/issues/2619) [(f8ac2)](https://togithub.com/vitest-dev/vitest/commit/f8ac2094) - Allow mocking CJS module with interoped default - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2598](https://togithub.com/vitest-dev/vitest/issues/2598) [(6b3e3)](https://togithub.com/vitest-dev/vitest/commit/6b3e36d4) - Avoid random ENOTEMPTY errors - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2620](https://togithub.com/vitest-dev/vitest/issues/2620) [(59766)](https://togithub.com/vitest-dev/vitest/commit/59766fa4) - Always inline assets and modules with special Vite queries - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2617](https://togithub.com/vitest-dev/vitest/issues/2617) [(fed1c)](https://togithub.com/vitest-dev/vitest/commit/fed1cd60) - **cli**: - Allow overrides reporter via cli option - by [@mysteryven](https://togithub.com/mysteryven) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2573](https://togithub.com/vitest-dev/vitest/issues/2573) [(894f1)](https://togithub.com/vitest-dev/vitest/commit/894f155a) - **coverage**: - Flaky c8 coverage caused by parallel sourcemap constructing - by [@AriPerkkio](https://togithub.com/AriPerkkio) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2591](https://togithub.com/vitest-dev/vitest/issues/2591) [(9a29f)](https://togithub.com/vitest-dev/vitest/commit/9a29f984) - Validate extension, when reporting c8 coverage - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2626](https://togithub.com/vitest-dev/vitest/issues/2626) [(74463)](https://togithub.com/vitest-dev/vitest/commit/7446370c) ##### 🏎 Performance - Improve vi.mock performance - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2594](https://togithub.com/vitest-dev/vitest/issues/2594) [(09d19)](https://togithub.com/vitest-dev/vitest/commit/09d19892) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.3...v0.27.0) ### [`v0.26.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.2...v0.26.3) ##### 🚀 Features - **mock**: Expose a `importOriginal` helper to the factory - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2551](https://togithub.com/vitest-dev/vitest/issues/2551) [(853ee)](https://togithub.com/vitest-dev/vitest/commit/853eeddb) ##### 🐞 Bug Fixes - Correctly automock nested interoped defaults - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2559](https://togithub.com/vitest-dev/vitest/issues/2559) [(a431d)](https://togithub.com/vitest-dev/vitest/commit/a431df80) - Start tracking module resolution as soon as possible for easier tracking - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2560](https://togithub.com/vitest-dev/vitest/issues/2560) [(9f41e)](https://togithub.com/vitest-dev/vitest/commit/9f41edda) - Don't hang when mocking module with circular dependency - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2572](https://togithub.com/vitest-dev/vitest/issues/2572) [(c479d)](https://togithub.com/vitest-dev/vitest/commit/c479d9c0) - Show list of tests when typechecking - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2585](https://togithub.com/vitest-dev/vitest/issues/2585) [(32a57)](https://togithub.com/vitest-dev/vitest/commit/32a577b1) - **api**: Make api parse error stacks and return sourcePos in onTaskUpdate - by [@adrienbaron](https://togithub.com/adrienbaron) in [https://github.com/vitest-dev/vitest/issues/2563](https://togithub.com/vitest-dev/vitest/issues/2563) [(ef77d)](https://togithub.com/vitest-dev/vitest/commit/ef77dccf) - **coverage**: Env-replacer to remove query params from sourcemaps filenames - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2584](https://togithub.com/vitest-dev/vitest/issues/2584) [(dba13)](https://togithub.com/vitest-dev/vitest/commit/dba13374) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.2...v0.26.3) ### [`v0.26.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.1...v0.26.2) ##### 🚀 Features - Project name - by [@antfu](https://togithub.com/antfu) [(84f98)](https://togithub.com/vitest-dev/vitest/commit/84f98e70) ##### 🐞 Bug Fixes - Improve "isInternaRequest" check - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2541](https://togithub.com/vitest-dev/vitest/issues/2541) [(2bb9a)](https://togithub.com/vitest-dev/vitest/commit/2bb9a391) - Use correct word when printing "long-running" warning - by [@simon-abbott](https://togithub.com/simon-abbott) in [https://github.com/vitest-dev/vitest/issues/2546](https://togithub.com/vitest-dev/vitest/issues/2546) [(8dc1c)](https://togithub.com/vitest-dev/vitest/commit/8dc1c3cb) - Pass down diff options - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2545](https://togithub.com/vitest-dev/vitest/issues/2545) [(98c94)](https://togithub.com/vitest-dev/vitest/commit/98c94e65) - **cli**: Respect inline config `dir` - by [@antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2550](https://togithub.com/vitest-dev/vitest/issues/2550) [(f6b59)](https://togithub.com/vitest-dev/vitest/commit/f6b592a9) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.1...v0.26.2) ### [`v0.26.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.26.0...v0.26.1) ##### 🚀 Features - Add more options to configure diff output - by [@sheremet-va](https://togithub.com/sheremet-va) and [@dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/2522](https://togithub.com/vitest-dev/vitest/issues/2522) [(7ae14)](https://togithub.com/vitest-dev/vitest/commit/7ae1417f) ##### 🐞 Bug Fixes - Don't resolve builtin Node modules - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2538](https://togithub.com/vitest-dev/vitest/issues/2538) [(1cbc2)](https://togithub.com/vitest-dev/vitest/commit/1cbc24dc) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.26.0...v0.26.1) ### [`v0.26.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.26.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.25.8...v0.26.0) ##### 🚨 Breaking Changes - **vite-node:** Rewrite how vite-node resolves id - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2463](https://togithub.com/vitest-dev/vitest/issues/2463) [(58ee8)](https://togithub.com/vitest-dev/vitest/commit/58ee8e9b) - Correctly interop nested default for external and inlined modules - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2512](https://togithub.com/vitest-dev/vitest/issues/2512) [(084e9)](https://togithub.com/vitest-dev/vitest/commit/084e929c) - If your environment is `node`, Vitest will not resolve invalid named exports (exports that are on "default" property will not magically appear as named exports), unless `deps.interopDefault` is enabled, or dependency is in `deps.inline`. This change doesn't affect `jsdom`, `happy-dom` or `edge` environments. - **web-worker:** Make web-worker implementation more compatible with spec - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2431](https://togithub.com/vitest-dev/vitest/issues/2431) [(c3a63)](https://togithub.com/vitest-dev/vitest/commit/c3a63524) - Messages are now cloned with `structuredClone`, if it's available, or fallbacks to a polyfill. - Added support for `SharedWorker` ##### 🚀 Features - Introduce a native way to set env and globals - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2515](https://togithub.com/vitest-dev/vitest/issues/2515) [(b114d)](https://togithub.com/vitest-dev/vitest/commit/b114d49f) - Add html reporter based on Vitest UI - by [@poyoho](https://togithub.com/poyoho) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2444](https://togithub.com/vitest-dev/vitest/issues/2444) [(b8f34)](https://togithub.com/vitest-dev/vitest/commit/b8f34eb8) - If you have `@vitest/ui` installed, you can now use `'html'` reporter to get a [beautiful UI](https://vitest.dev/guide/ui.html) to view your test results, inspect module graph and read log messages. ##### 🐞 Bug Fixes - Allow assigning new hotContext - by [@cometkim](https://togithub.com/cometkim) in [https://github.com/vitest-dev/vitest/issues/2524](https://togithub.com/vitest-dev/vitest/issues/2524) [(b4c43)](https://togithub.com/vitest-dev/vitest/commit/b4c43cd5) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.25.8...v0.26.0)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.