vitest-dev/vitest (@vitest/coverage-istanbul)
### [`v2.0.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2)
##### 🐞 Bug Fixes
- **browser**:
- Remove [@vitest/runner](https://togithub.com/vitest/runner) > pretty-format from prebundling because it doesn't exist - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6075](https://togithub.com/vitest-dev/vitest/issues/6075) [(a169d)](https://togithub.com/vitest-dev/vitest/commit/a169d25a)
- Inline pretty-format and replace picocolors with tinyrainbow - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6077](https://togithub.com/vitest-dev/vitest/issues/6077) [(80a43)](https://togithub.com/vitest-dev/vitest/commit/80a43d5c)
- Remove `crypto.randomUUID` from the client - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6079](https://togithub.com/vitest-dev/vitest/issues/6079) [(04c83)](https://togithub.com/vitest-dev/vitest/commit/04c83acc)
- Correctly overwrite loupe require - by [@sheremet-va](https://togithub.com/sheremet-va) [(756ac)](https://togithub.com/vitest-dev/vitest/commit/756ac2bc)
- Dedupe @vitest/browser/client - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6081](https://togithub.com/vitest-dev/vitest/issues/6081) [(ee725)](https://togithub.com/vitest-dev/vitest/commit/ee725184)
- Don't release keyboard automatically - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6083](https://togithub.com/vitest-dev/vitest/issues/6083) [(58fac)](https://togithub.com/vitest-dev/vitest/commit/58fac77b)
- **ui**:
- Test files notified only when running - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6069](https://togithub.com/vitest-dev/vitest/issues/6069) [(af7fe)](https://togithub.com/vitest-dev/vitest/commit/af7fec58)
- Encode html entities in task name - by [@userquin](https://togithub.com/userquin) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6070](https://togithub.com/vitest-dev/vitest/issues/6070) [(7f0cc)](https://togithub.com/vitest-dev/vitest/commit/7f0cc24e)
- **web-worker**:
- Peer dependency version on `vitest` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6060](https://togithub.com/vitest-dev/vitest/issues/6060) [(95a2d)](https://togithub.com/vitest-dev/vitest/commit/95a2d870)
##### 🏎 Performance
- **browser**: Don't import msw if no modules are mocked - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6073](https://togithub.com/vitest-dev/vitest/issues/6073) [(aa527)](https://togithub.com/vitest-dev/vitest/commit/aa52792a)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2)
### [`v2.0.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1)
##### 🐞 Bug Fixes
- **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6054](https://togithub.com/vitest-dev/vitest/issues/6054) [(4b03e)](https://togithub.com/vitest-dev/vitest/commit/4b03e72b)
- **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6053](https://togithub.com/vitest-dev/vitest/issues/6053) [(f94ed)](https://togithub.com/vitest-dev/vitest/commit/f94ede02)
- **vitest**: Print only running files, not every file - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6052](https://togithub.com/vitest-dev/vitest/issues/6052) [(4d559)](https://togithub.com/vitest-dev/vitest/commit/4d5597df)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1)
### [`v2.0.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.6.0...v2.0.0)
Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the [documentation](https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0).
##### 🚨 Breaking Changes
- Simplify mock function generic types and align with jest - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/4784](https://togithub.com/vitest-dev/vitest/pull/4784) [(a0c1d37)](https://togithub.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6)
- Remove `--segfault-retry` - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5514](https://togithub.com/vitest-dev/vitest/issues/5514) [(ed60e)](https://togithub.com/vitest-dev/vitest/commit/ed60e405e)
- This flag was introduced to combat `threads` segfaults. Our current recommendation is to use the new default `forks` pool instead.
- Run suite hooks in a stack - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5609](https://togithub.com/vitest-dev/vitest/issues/5609) [(1277d)](https://togithub.com/vitest-dev/vitest/commit/1277dc1e3)
- This feels like a more sensible default. Especially with the new [`onTestFinished`](https://vitest.dev/api/#ontestfinished) hook. This can make your tests run a little bit slower.
- Enable `coverage.ignoreEmptyLines` by default - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5543](https://togithub.com/vitest-dev/vitest/issues/5543) [(31994)](https://togithub.com/vitest-dev/vitest/commit/31994942f)
- ⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See [https://github.com/vitest-dev/vitest/issues/5423](https://togithub.com/vitest-dev/vitest/issues/5423) for more details.
- Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5434](https://togithub.com/vitest-dev/vitest/issues/5434) [(bcccc)](https://togithub.com/vitest-dev/vitest/commit/bcccce6df)
- Previously, the `location` field pointed to the error location instead of the test location. Now it is aligned with jest and contains the `line` and `column` of a test function, but requires [`includeTaskLocation`](https://vitest.dev/config/#includeTaskLocation) to be enabled.
- Update dependency chai to v5 - by **renovate\[bot]** and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5135](https://togithub.com/vitest-dev/vitest/issues/5135) [(73646)](https://togithub.com/vitest-dev/vitest/commit/73646b638)
- Remove watchExclude - by [@patak-dev](https://togithub.com/patak-dev) in [https://github.com/vitest-dev/vitest/issues/5177](https://togithub.com/vitest-dev/vitest/issues/5177) [(d7371)](https://togithub.com/vitest-dev/vitest/commit/d7371eae3)
- Change default `pool` to `'forks'` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5047](https://togithub.com/vitest-dev/vitest/issues/5047) [(7f8f9)](https://togithub.com/vitest-dev/vitest/commit/7f8f9c0c0)
- This change is done for compatibility issues
- This pool may be slightly slower than previous `threads` pool: https://vitest.dev/guide/improving-performance.html#pool
- `--merge-reports` to support coverage - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5736](https://togithub.com/vitest-dev/vitest/issues/5736) [(b7438)](https://togithub.com/vitest-dev/vitest/commit/b7438b9be)
- Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5749](https://togithub.com/vitest-dev/vitest/issues/5749) [(5f710)](https://togithub.com/vitest-dev/vitest/commit/5f710182e)
- ⚠️ Vitest no longer unwraps promises in `spy.mock.returns`. If the function is async or returns a promise, it will always succeed and have a `Promise` in `results`. To make migration easier, we introduced `spy.mock.settledResults` that unwraps promises and `expect().toHaveResolved()` matcher that accepts unwrapped value.
- Do not exit process if global setup has failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5726](https://togithub.com/vitest-dev/vitest/issues/5726) [(ddb09)](https://togithub.com/vitest-dev/vitest/commit/ddb09eb12)
- Don't exit process if config failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5715](https://togithub.com/vitest-dev/vitest/issues/5715) [(f232f)](https://togithub.com/vitest-dev/vitest/commit/f232fdd61)
- Add meta to `json` output - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5802](https://togithub.com/vitest-dev/vitest/issues/5802) [(dd754)](https://togithub.com/vitest-dev/vitest/commit/dd754c103)
- Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5842](https://togithub.com/vitest-dev/vitest/issues/5842) [(49f34)](https://togithub.com/vitest-dev/vitest/commit/49f34ec47)
- Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6013](https://togithub.com/vitest-dev/vitest/issues/6013) [(583dd)](https://togithub.com/vitest-dev/vitest/commit/583dd8a98)
- ⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`.
- Remove the empty suite from the runner - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5435](https://togithub.com/vitest-dev/vitest/issues/5435) [(dbbbe)](https://togithub.com/vitest-dev/vitest/commit/dbbbe4304)
- Support concurrent suites - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/5491](https://togithub.com/vitest-dev/vitest/pull/5491) [(222ce44)](https://togithub.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa)
- Support overriding `exclude` in coverage - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5997](https://togithub.com/vitest-dev/vitest/issues/5997) [(169bc)](https://togithub.com/vitest-dev/vitest/commit/169bc1fde)
- ⚠️ Vitest coverage no longer adds test files to `exclude` patterns if `coverage.exclude` was overridden in the config. Add your test patterns manually, or merge your overrides with default ones: `['**/my-pattern.js', ...coverageConfigDefaults.exclude]`. See https://vitest.dev/config/#coverage-exclude for an example.
##### 🚀 Features
- **browser**:
- 🌐 This release lays the groundwork for the next iteration of Vitest Browser Mode. You can read more about our future plans at [https://github.com/vitest-dev/vitest/discussions/5828](https://togithub.com/vitest-dev/vitest/discussions/5828)
- Add commands to communicate betweens server and the browser - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5097](https://togithub.com/vitest-dev/vitest/issues/5097) [(aa431)](https://togithub.com/vitest-dev/vitest/commit/aa431f4db)
- Do not reload the page during watch mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5810](https://togithub.com/vitest-dev/vitest/issues/5810) [(e5b9a)](https://togithub.com/vitest-dev/vitest/commit/e5b9a0be4)
- Support changing the viewport - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5811](https://togithub.com/vitest-dev/vitest/issues/5811) [(71851)](https://togithub.com/vitest-dev/vitest/commit/718512d80)
- Add browser iframe mouse interaction - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5815](https://togithub.com/vitest-dev/vitest/issues/5815) [(f29b9)](https://togithub.com/vitest-dev/vitest/commit/f29b9d408)
- Support `click` event - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5777](https://togithub.com/vitest-dev/vitest/issues/5777) [(839c3)](https://togithub.com/vitest-dev/vitest/commit/839c39f06)
- Rename none provider to preview, make it default - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5826](https://togithub.com/vitest-dev/vitest/issues/5826) [(18310)](https://togithub.com/vitest-dev/vitest/commit/1831008b1)
- Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5853](https://togithub.com/vitest-dev/vitest/issues/5853) [(81c42)](https://togithub.com/vitest-dev/vitest/commit/81c42fc8a)
- Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5882](https://togithub.com/vitest-dev/vitest/issues/5882) [(4dbea)](https://togithub.com/vitest-dev/vitest/commit/4dbea4aed)
- Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5910](https://togithub.com/vitest-dev/vitest/issues/5910) [(3a96a)](https://togithub.com/vitest-dev/vitest/commit/3a96a3d0e)
- Expose CDP in the browser - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5938](https://togithub.com/vitest-dev/vitest/issues/5938) [(bec43)](https://togithub.com/vitest-dev/vitest/commit/bec434cb6)
- Add "init" command for browser tests - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5960](https://togithub.com/vitest-dev/vitest/issues/5960) [(49e97)](https://togithub.com/vitest-dev/vitest/commit/49e973cb9)
- Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5975](https://togithub.com/vitest-dev/vitest/issues/5975) [(154cb)](https://togithub.com/vitest-dev/vitest/commit/154cb22de)
- Add `tripleClick` to interactive api - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5987](https://togithub.com/vitest-dev/vitest/issues/5987) [(200a4)](https://togithub.com/vitest-dev/vitest/commit/200a4349a)
- Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://togithub.com/userquin) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5984](https://togithub.com/vitest-dev/vitest/issues/5984) [(ff978)](https://togithub.com/vitest-dev/vitest/commit/ff978e58d)
- Pretty print diffs coming from cause - by [@dubzzz](https://togithub.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5660](https://togithub.com/vitest-dev/vitest/issues/5660) [(6faf8)](https://togithub.com/vitest-dev/vitest/commit/6faf8f84b)
- Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5690](https://togithub.com/vitest-dev/vitest/issues/5690) [(a99a1)](https://togithub.com/vitest-dev/vitest/commit/a99a14c1c)
- Remove deprecated options - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5696](https://togithub.com/vitest-dev/vitest/issues/5696) [(5c308)](https://togithub.com/vitest-dev/vitest/commit/5c308edc6)
- Add blob reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5663](https://togithub.com/vitest-dev/vitest/issues/5663) [(e2053)](https://togithub.com/vitest-dev/vitest/commit/e20538a36)
- ✅ Run Vitest in separate processes with `--reporter=blob` flag to generate reports and combine them with `vitest --merge-reports` later!
- Add expect.poll utility - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5708](https://togithub.com/vitest-dev/vitest/issues/5708) [(e2e0f)](https://togithub.com/vitest-dev/vitest/commit/e2e0ff46a)
- Add browser.ui option - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5771](https://togithub.com/vitest-dev/vitest/issues/5771) [(a5033)](https://togithub.com/vitest-dev/vitest/commit/a50330eea)
- Add median to `--output-json` - by [@Joristdh](https://togithub.com/Joristdh) in [https://github.com/vitest-dev/vitest/issues/5745](https://togithub.com/vitest-dev/vitest/issues/5745) [(0766b)](https://togithub.com/vitest-dev/vitest/commit/0766b7f72)
- Allow augmenting config.test.env - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5784](https://togithub.com/vitest-dev/vitest/issues/5784) [(b2469)](https://togithub.com/vitest-dev/vitest/commit/b24691efd)
- Implement module mocking in browser mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5765](https://togithub.com/vitest-dev/vitest/issues/5765) [(7b2f6)](https://togithub.com/vitest-dev/vitest/commit/7b2f64cfa)
- Allow configuring expect options in the config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5729](https://togithub.com/vitest-dev/vitest/issues/5729) [(fc53f)](https://togithub.com/vitest-dev/vitest/commit/fc53f5634)
- Add an option to print console stack trace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5720](https://togithub.com/vitest-dev/vitest/issues/5720) [(e4fe6)](https://togithub.com/vitest-dev/vitest/commit/e4fe6f51a)
- Add browser frame to UI - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5808](https://togithub.com/vitest-dev/vitest/issues/5808) [(3796d)](https://togithub.com/vitest-dev/vitest/commit/3796dd7e0)
- Image type add bmp - by **btea** in [https://github.com/vitest-dev/vitest/issues/5921](https://togithub.com/vitest-dev/vitest/issues/5921) [(98f9b)](https://togithub.com/vitest-dev/vitest/commit/98f9b7ab9)
- Add an option to return base64 from page.screenshot - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5993](https://togithub.com/vitest-dev/vitest/issues/5993) [(be323)](https://togithub.com/vitest-dev/vitest/commit/be3231763)
- Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://togithub.com/sheremet-va) [(f645e)](https://togithub.com/vitest-dev/vitest/commit/f645e48c5)
- **config**:
- Allow percentage value for workers option - by [@syi0808](https://togithub.com/syi0808) in [https://github.com/vitest-dev/vitest/issues/5982](https://togithub.com/vitest-dev/vitest/issues/5982) [(b1a27)](https://togithub.com/vitest-dev/vitest/commit/b1a27d404)
- **runner**:
- Implement `test.for` - by [@hi-ogawa](https://togithub.com/hi-ogawa) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5861](https://togithub.com/vitest-dev/vitest/issues/5861) [(c2380)](https://togithub.com/vitest-dev/vitest/commit/c238072fd)
- **spy**:
- Collect mock.contexts - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5955](https://togithub.com/vitest-dev/vitest/issues/5955) [(3b31a)](https://togithub.com/vitest-dev/vitest/commit/3b31a56d5)
- **ui**:
- Render tests in a tree - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5807](https://togithub.com/vitest-dev/vitest/issues/5807) [(7900f)](https://togithub.com/vitest-dev/vitest/commit/7900f9f89)
- Load module graph on tab selection - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5844](https://togithub.com/vitest-dev/vitest/issues/5844) [(b117e)](https://togithub.com/vitest-dev/vitest/commit/b117e8756)
- Replace navigation tree with test explorer - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5907](https://togithub.com/vitest-dev/vitest/issues/5907) [(45dfc)](https://togithub.com/vitest-dev/vitest/commit/45dfc95ae)
- Add initializing explorer logic - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5941](https://togithub.com/vitest-dev/vitest/issues/5941) [(c31c4)](https://togithub.com/vitest-dev/vitest/commit/c31c41c72)
- Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://togithub.com/userquin) and **Anjorin Damilare** in [https://github.com/vitest-dev/vitest/issues/5948](https://togithub.com/vitest-dev/vitest/issues/5948) [(7ec29)](https://togithub.com/vitest-dev/vitest/commit/7ec298eb3)
- **ws-client**:
- Allow change reactive for state, filesMap and idMap - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5906](https://togithub.com/vitest-dev/vitest/issues/5906) [(e6020)](https://togithub.com/vitest-dev/vitest/commit/e6020b9c2)
##### 🐞 Bug Fixes
- Print console statements in vmThreads - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5678](https://togithub.com/vitest-dev/vitest/issues/5678) [(34a80)](https://togithub.com/vitest-dev/vitest/commit/34a80b392)
- Repeatable `--exclude` option - by [@fregante](https://togithub.com/fregante) in [https://github.com/vitest-dev/vitest/issues/5782](https://togithub.com/vitest-dev/vitest/issues/5782) [(d6700)](https://togithub.com/vitest-dev/vitest/commit/d6700bbd8)
- Remove browser.fileParallelism - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5790](https://togithub.com/vitest-dev/vitest/issues/5790) [(b881e)](https://togithub.com/vitest-dev/vitest/commit/b881e88b2)
- Install UI icons - by [@sheremet-va](https://togithub.com/sheremet-va) [(b84f1)](https://togithub.com/vitest-dev/vitest/commit/b84f1721d)
- Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5804](https://togithub.com/vitest-dev/vitest/issues/5804) [(a820e)](https://togithub.com/vitest-dev/vitest/commit/a820e7ac6)
- Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://togithub.com/pedro00dk) in [https://github.com/vitest-dev/vitest/issues/5875](https://togithub.com/vitest-dev/vitest/issues/5875) [(04107)](https://togithub.com/vitest-dev/vitest/commit/041076e7c)
- ToJSON recursive error serialization - by [@eddienubes](https://togithub.com/eddienubes) in [https://github.com/vitest-dev/vitest/issues/5848](https://togithub.com/vitest-dev/vitest/issues/5848) and [https://github.com/vitest-dev/vitest/issues/5884](https://togithub.com/vitest-dev/vitest/issues/5884) [(8d55d)](https://togithub.com/vitest-dev/vitest/commit/8d55d6bd4)
- Print error properties only in verbose reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5917](https://togithub.com/vitest-dev/vitest/issues/5917) [(2bd8d)](https://togithub.com/vitest-dev/vitest/commit/2bd8d9d6f)
- Use TTY reporter when running in Deno - by [@marvinhagemeister](https://togithub.com/marvinhagemeister) in [https://github.com/vitest-dev/vitest/issues/5972](https://togithub.com/vitest-dev/vitest/issues/5972) [(e0f45)](https://togithub.com/vitest-dev/vitest/commit/e0f45cb57)
- Don't override uppercase - by [@sheremet-va](https://togithub.com/sheremet-va) [(caef4)](https://togithub.com/vitest-dev/vitest/commit/caef40a0b)
- Clear screen and scrollback on iTerm2 - by [@kxalex](https://togithub.com/kxalex) in [https://github.com/vitest-dev/vitest/issues/5978](https://togithub.com/vitest-dev/vitest/issues/5978) [(d7f23)](https://togithub.com/vitest-dev/vitest/commit/d7f23d08c)
- Include pretty-format in [@vitest/runner](https://togithub.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://togithub.com/sheremet-va) [(42bd4)](https://togithub.com/vitest-dev/vitest/commit/42bd4a259)
- Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4409](https://togithub.com/vitest-dev/vitest/issues/4409) [(8f65a)](https://togithub.com/vitest-dev/vitest/commit/8f65ae906)
- **api**:
- Correct `project.provide` type - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5959](https://togithub.com/vitest-dev/vitest/issues/5959) [(0eda9)](https://togithub.com/vitest-dev/vitest/commit/0eda99de9)
- Don't call process.exit manually - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5926](https://togithub.com/vitest-dev/vitest/issues/5926) [(e9b63)](https://togithub.com/vitest-dev/vitest/commit/e9b638d40)
- **browser**:
- Display UI - by [@sheremet-va](https://togithub.com/sheremet-va) [(d41e4)](https://togithub.com/vitest-dev/vitest/commit/d41e46a81)
- Browser actions icons colors - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5816](https://togithub.com/vitest-dev/vitest/issues/5816) [(f9d9b)](https://togithub.com/vitest-dev/vitest/commit/f9d9b3bef)
- Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5821](https://togithub.com/vitest-dev/vitest/issues/5821) [(5ebb3)](https://togithub.com/vitest-dev/vitest/commit/5ebb3abf5)
- Don't get stuck after the manual page refresh - by [@sheremet-va](https://togithub.com/sheremet-va) [(2220b)](https://togithub.com/vitest-dev/vitest/commit/2220bb3fe)
- Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5823](https://togithub.com/vitest-dev/vitest/issues/5823) [(34a31)](https://togithub.com/vitest-dev/vitest/commit/34a310da1)
- Always clean up iframes on rerun - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5827](https://togithub.com/vitest-dev/vitest/issues/5827) [(087fa)](https://togithub.com/vitest-dev/vitest/commit/087fa87c3)
- Support [@testing-library/vue](https://togithub.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://togithub.com/sheremet-va) [(76b82)](https://togithub.com/vitest-dev/vitest/commit/76b82e5b9)
- Print correct transformed module graph - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5833](https://togithub.com/vitest-dev/vitest/issues/5833) [(a7581)](https://togithub.com/vitest-dev/vitest/commit/a75815756)
- Use `preview` provider when running in StackBlitz - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5836](https://togithub.com/vitest-dev/vitest/issues/5836) [(76e13)](https://togithub.com/vitest-dev/vitest/commit/76e13587c)
- Specify entries for correct deps optimization - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5839](https://togithub.com/vitest-dev/vitest/issues/5839) [(c79b3)](https://togithub.com/vitest-dev/vitest/commit/c79b3f1f9)
- Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5841](https://togithub.com/vitest-dev/vitest/issues/5841) [(caaaf)](https://togithub.com/vitest-dev/vitest/commit/caaafd903)
- Don't optimize Vitest dependencies - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5843](https://togithub.com/vitest-dev/vitest/issues/5843) [(f15b4)](https://togithub.com/vitest-dev/vitest/commit/f15b4e99d)
- Set server.open to false and move error handling after init - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5845](https://togithub.com/vitest-dev/vitest/issues/5845) [(47003)](https://togithub.com/vitest-dev/vitest/commit/470036794)
- Show correct prepare time - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5852](https://togithub.com/vitest-dev/vitest/issues/5852) [(52d54)](https://togithub.com/vitest-dev/vitest/commit/52d545bf9)
- Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5920](https://togithub.com/vitest-dev/vitest/issues/5920) [(f33da)](https://togithub.com/vitest-dev/vitest/commit/f33dabbef)
- Correctly update inline snapshot if changed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5925](https://togithub.com/vitest-dev/vitest/issues/5925) [(2380c)](https://togithub.com/vitest-dev/vitest/commit/2380cb95e)
- Remove "util" warning - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5935](https://togithub.com/vitest-dev/vitest/issues/5935) [(48f28)](https://togithub.com/vitest-dev/vitest/commit/48f28f731)
- Remove hacky retry - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5971](https://togithub.com/vitest-dev/vitest/issues/5971) [(2a2c9)](https://togithub.com/vitest-dev/vitest/commit/2a2c9085a)
- Make userEvent more stable when running in parallel - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5974](https://togithub.com/vitest-dev/vitest/issues/5974) [(14a21)](https://togithub.com/vitest-dev/vitest/commit/14a217d53)
- Print screenshot path alongside the test error message - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5992](https://togithub.com/vitest-dev/vitest/issues/5992) [(15289)](https://togithub.com/vitest-dev/vitest/commit/152891b3d)
- Print correct stack trace in source files - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6003](https://togithub.com/vitest-dev/vitest/issues/6003) [(62aa7)](https://togithub.com/vitest-dev/vitest/commit/62aa72081)
- Correctly mock optimized cjs dependencies - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6035](https://togithub.com/vitest-dev/vitest/issues/6035) [(057b4)](https://togithub.com/vitest-dev/vitest/commit/057b4f34b)
- Support shadow root and svg elements - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6036](https://togithub.com/vitest-dev/vitest/issues/6036) [(2e3c8)](https://togithub.com/vitest-dev/vitest/commit/2e3c872ae)
- **coverage**:
- Clean up empty coverage reports directory - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5731](https://togithub.com/vitest-dev/vitest/issues/5731) [(c469c)](https://togithub.com/vitest-dev/vitest/commit/c469c74d7)
- `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5818](https://togithub.com/vitest-dev/vitest/issues/5818) [(7afb3)](https://togithub.com/vitest-dev/vitest/commit/7afb3682f)
- Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5954](https://togithub.com/vitest-dev/vitest/issues/5954) [(70805)](https://togithub.com/vitest-dev/vitest/commit/708051319)
- Exclude bench files from coverage - by [@kouak](https://togithub.com/kouak) in [https://github.com/vitest-dev/vitest/issues/5983](https://togithub.com/vitest-dev/vitest/issues/5983) [(429e1)](https://togithub.com/vitest-dev/vitest/commit/429e1a7f8)
- Vite to ignore dynamic import of provider - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5998](https://togithub.com/vitest-dev/vitest/issues/5998) [(6d884)](https://togithub.com/vitest-dev/vitest/commit/6d8848e86)
- Istanbul to support import attributes - by [@Gravitonic](https://togithub.com/Gravitonic) in [https://github.com/vitest-dev/vitest/issues/6006](https://togithub.com/vitest-dev/vitest/issues/6006) [(2898a)](https://togithub.com/vitest-dev/vitest/commit/2898a525d)
- Remove work-around for implicit `else` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6014](https://togithub.com/vitest-dev/vitest/issues/6014) [(368c1)](https://togithub.com/vitest-dev/vitest/commit/368c13728)
- **deps**:
- Update dependency [@testing-library/dom](https://togithub.com/testing-library/dom) to v10 - by **renovate\[bot]** in [https://github.com/vitest-dev/vitest/issues/5866](https://togithub.com/vitest-dev/vitest/issues/5866) [(e9745)](https://togithub.com/vitest-dev/vitest/commit/e9745997e)
- Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5867](https://togithub.com/vitest-dev/vitest/issues/5867) [(0a715)](https://togithub.com/vitest-dev/vitest/commit/0a715946b)
- **expect**:
- Fix immutable.js iterable equality - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5692](https://togithub.com/vitest-dev/vitest/issues/5692) [(1532c)](https://togithub.com/vitest-dev/vitest/commit/1532c19a0)
- **forks**:
- Resolve `poolOptions..isolate` from `forks` options - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5840](https://togithub.com/vitest-dev/vitest/issues/5840) [(a60a1)](https://togithub.com/vitest-dev/vitest/commit/a60a140ef)
- **runner**:
- Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://togithub.com/pengooseDev) in [https://github.com/vitest-dev/vitest/issues/5737](https://togithub.com/vitest-dev/vitest/issues/5737) [(a20e7)](https://togithub.com/vitest-dev/vitest/commit/a20e75b89)
- Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://togithub.com/pengooseDev) in [https://github.com/vitest-dev/vitest/issues/5806](https://togithub.com/vitest-dev/vitest/issues/5806) [(9ac8f)](https://togithub.com/vitest-dev/vitest/commit/9ac8ff9bd)
- **snapshot**:
- Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5894](https://togithub.com/vitest-dev/vitest/issues/5894) [(88006)](https://togithub.com/vitest-dev/vitest/commit/8800601d2)
- **spy**:
- Correctly track constructor's "this" type - by [@sheremet-va](https://togithub.com/sheremet-va) [(4776e)](https://togithub.com/vitest-dev/vitest/commit/4776eca1d)
- **types**:
- Mark pool options as not available in project config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5934](https://togithub.com/vitest-dev/vitest/issues/5934) [(486fd)](https://togithub.com/vitest-dev/vitest/commit/486fd1169)
- **ui**:
- Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5792](https://togithub.com/vitest-dev/vitest/issues/5792) [(48c50)](https://togithub.com/vitest-dev/vitest/commit/48c502fbe)
- Update running todo tests inside todo suites (each) - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5939](https://togithub.com/vitest-dev/vitest/issues/5939) [(63ae1)](https://togithub.com/vitest-dev/vitest/commit/63ae10bd9)
- `FileDetails` title status icon not being updated - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5942](https://togithub.com/vitest-dev/vitest/issues/5942) [(e9ddf)](https://togithub.com/vitest-dev/vitest/commit/e9ddf9ce2)
- **ui, browser**:
- Disable mouse events when resizing main navigation panel - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5863](https://togithub.com/vitest-dev/vitest/issues/5863) [(7cbd9)](https://togithub.com/vitest-dev/vitest/commit/7cbd943c7)
- **utils**:
- Produce valid snapshot names - by [@dubzzz](https://togithub.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5724](https://togithub.com/vitest-dev/vitest/issues/5724) [(1ec61)](https://togithub.com/vitest-dev/vitest/commit/1ec61ceee)
- Fix color util maximum call stack error - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5733](https://togithub.com/vitest-dev/vitest/issues/5733) [(a4ec5)](https://togithub.com/vitest-dev/vitest/commit/a4ec58319)
- Package exports - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5847](https://togithub.com/vitest-dev/vitest/issues/5847) [(07876)](https://togithub.com/vitest-dev/vitest/commit/07876b7e0)
- **vite-node**:
- Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6017](https://togithub.com/vitest-dev/vitest/issues/6017) [(d87be)](https://togithub.com/vitest-dev/vitest/commit/d87bef961)
- **vitest**:
- Expose `provide` to the public API - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5897](https://togithub.com/vitest-dev/vitest/issues/5897) [(66e64)](https://togithub.com/vitest-dev/vitest/commit/66e648ff8)
- Cache fs code only for forks pool - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5909](https://togithub.com/vitest-dev/vitest/issues/5909) [(e30d9)](https://togithub.com/vitest-dev/vitest/commit/e30d9b4d5)
- Allow testing unandled rejection/exception - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6016](https://togithub.com/vitest-dev/vitest/issues/6016) [(c8d56)](https://togithub.com/vitest-dev/vitest/commit/c8d56fe5f)
- Show all failed tests when rerunning a test - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6022](https://togithub.com/vitest-dev/vitest/issues/6022) [(91ba6)](https://togithub.com/vitest-dev/vitest/commit/91ba6f95e)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/6b29f3ddc86060cf3265959d4ae32e90b186cb92...v2.0.0)
vitest-dev/vitest (vitest)
### [`v2.0.2`](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2)
### [`v2.0.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.1)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1)
##### 🐞 Bug Fixes
- **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6054](https://togithub.com/vitest-dev/vitest/issues/6054) [(4b03e)](https://togithub.com/vitest-dev/vitest/commit/4b03e72b)
- **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6053](https://togithub.com/vitest-dev/vitest/issues/6053) [(f94ed)](https://togithub.com/vitest-dev/vitest/commit/f94ede02)
- **vitest**: Print only running files, not every file - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6052](https://togithub.com/vitest-dev/vitest/issues/6052) [(4d559)](https://togithub.com/vitest-dev/vitest/commit/4d5597df)
##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1)
### [`v2.0.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.0)
[Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.6.0...v2.0.0)
Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the [documentation](https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0).
##### 🚨 Breaking Changes
- Simplify mock function generic types and align with jest - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/4784](https://togithub.com/vitest-dev/vitest/pull/4784) [(a0c1d37)](https://togithub.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6)
- Remove `--segfault-retry` - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5514](https://togithub.com/vitest-dev/vitest/issues/5514) [(ed60e)](https://togithub.com/vitest-dev/vitest/commit/ed60e405e)
- This flag was introduced to combat `threads` segfaults. Our current recommendation is to use the new default `forks` pool instead.
- Run suite hooks in a stack - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5609](https://togithub.com/vitest-dev/vitest/issues/5609) [(1277d)](https://togithub.com/vitest-dev/vitest/commit/1277dc1e3)
- This feels like a more sensible default. Especially with the new [`onTestFinished`](https://vitest.dev/api/#ontestfinished) hook. This can make your tests run a little bit slower.
- Enable `coverage.ignoreEmptyLines` by default - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5543](https://togithub.com/vitest-dev/vitest/issues/5543) [(31994)](https://togithub.com/vitest-dev/vitest/commit/31994942f)
- ⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See [https://github.com/vitest-dev/vitest/issues/5423](https://togithub.com/vitest-dev/vitest/issues/5423) for more details.
- Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5434](https://togithub.com/vitest-dev/vitest/issues/5434) [(bcccc)](https://togithub.com/vitest-dev/vitest/commit/bcccce6df)
- Previously, the `location` field pointed to the error location instead of the test location. Now it is aligned with jest and contains the `line` and `column` of a test function, but requires [`includeTaskLocation`](https://vitest.dev/config/#includeTaskLocation) to be enabled.
- Update dependency chai to v5 - by **renovate\[bot]** and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5135](https://togithub.com/vitest-dev/vitest/issues/5135) [(73646)](https://togithub.com/vitest-dev/vitest/commit/73646b638)
- Remove watchExclude - by [@patak-dev](https://togithub.com/patak-dev) in [https://github.com/vitest-dev/vitest/issues/5177](https://togithub.com/vitest-dev/vitest/issues/5177) [(d7371)](https://togithub.com/vitest-dev/vitest/commit/d7371eae3)
- Change default `pool` to `'forks'` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5047](https://togithub.com/vitest-dev/vitest/issues/5047) [(7f8f9)](https://togithub.com/vitest-dev/vitest/commit/7f8f9c0c0)
- This change is done for compatibility issues
- This pool may be slightly slower than previous `threads` pool: https://vitest.dev/guide/improving-performance.html#pool
- `--merge-reports` to support coverage - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5736](https://togithub.com/vitest-dev/vitest/issues/5736) [(b7438)](https://togithub.com/vitest-dev/vitest/commit/b7438b9be)
- Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5749](https://togithub.com/vitest-dev/vitest/issues/5749) [(5f710)](https://togithub.com/vitest-dev/vitest/commit/5f710182e)
- ⚠️ Vitest no longer unwraps promises in `spy.mock.returns`. If the function is async or returns a promise, it will always succeed and have a `Promise` in `results`. To make migration easier, we introduced `spy.mock.settledResults` that unwraps promises and `expect().toHaveResolved()` matcher that accepts unwrapped value.
- Do not exit process if global setup has failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5726](https://togithub.com/vitest-dev/vitest/issues/5726) [(ddb09)](https://togithub.com/vitest-dev/vitest/commit/ddb09eb12)
- Don't exit process if config failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5715](https://togithub.com/vitest-dev/vitest/issues/5715) [(f232f)](https://togithub.com/vitest-dev/vitest/commit/f232fdd61)
- Add meta to `json` output - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5802](https://togithub.com/vitest-dev/vitest/issues/5802) [(dd754)](https://togithub.com/vitest-dev/vitest/commit/dd754c103)
- Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5842](https://togithub.com/vitest-dev/vitest/issues/5842) [(49f34)](https://togithub.com/vitest-dev/vitest/commit/49f34ec47)
- Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6013](https://togithub.com/vitest-dev/vitest/issues/6013) [(583dd)](https://togithub.com/vitest-dev/vitest/commit/583dd8a98)
- ⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`.
- Remove the empty suite from the runner - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5435](https://togithub.com/vitest-dev/vitest/issues/5435) [(dbbbe)](https://togithub.com/vitest-dev/vitest/commit/dbbbe4304)
- Support concurrent suites - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/5491](https://togithub.com/vitest-dev/vitest/pull/5491) [(222ce44)](https://togithub.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa)
##### 🚀 Features
- Pretty print diffs coming from cause - by [@dubzzz](https://togithub.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5660](https://togithub.com/vitest-dev/vitest/issues/5660) [(6faf8)](https://togithub.com/vitest-dev/vitest/commit/6faf8f84b)
- Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5690](https://togithub.com/vitest-dev/vitest/issues/5690) [(a99a1)](https://togithub.com/vitest-dev/vitest/commit/a99a14c1c)
- Remove deprecated options - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5696](https://togithub.com/vitest-dev/vitest/issues/5696) [(5c308)](https://togithub.com/vitest-dev/vitest/commit/5c308edc6)
- Add blob reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5663](https://togithub.com/vitest-dev/vitest/issues/5663) [(e2053)](https://togithub.com/vitest-dev/vitest/commit/e20538a36)
- Add expect.poll utility - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5708](https://togithub.com/vitest-dev/vitest/issues/5708) [(e2e0f)](https://togithub.com/vitest-dev/vitest/commit/e2e0ff46a)
- Add browser.ui option - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5771](https://togithub.com/vitest-dev/vitest/issues/5771) [(a5033)](https://togithub.com/vitest-dev/vitest/commit/a50330eea)
- Add median to `--output-json` - by [@Joristdh](https://togithub.com/Joristdh) in [https://github.com/vitest-dev/vitest/issues/5745](https://togithub.com/vitest-dev/vitest/issues/5745) [(0766b)](https://togithub.com/vitest-dev/vitest/commit/0766b7f72)
- Allow augmenting config.test.env - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5784](https://togithub.com/vitest-dev/vitest/issues/5784) [(b2469)](https://togithub.com/vitest-dev/vitest/commit/b24691efd)
- Implement module mocking in browser mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5765](https://togithub.com/vitest-dev/vitest/issues/5765) [(7b2f6)](https://togithub.com/vitest-dev/vitest/commit/7b2f64cfa)
- Allow configuring expect options in the config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5729](https://togithub.com/vitest-dev/vitest/issues/5729) [(fc53f)](https://togithub.com/vitest-dev/vitest/commit/fc53f5634)
- Add an option to print console stack trace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5720](https://togithub.com/vitest-dev/vitest/issues/5720) [(e4fe6)](https://togithub.com/vitest-dev/vitest/commit/e4fe6f51a)
- Add browser frame to UI - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5808](https://togithub.com/vitest-dev/vitest/issues/5808) [(3796d)](https://togithub.com/vitest-dev/vitest/commit/3796dd7e0)
- Image type add bmp - by **btea** in [https://github.com/vitest-dev/vitest/issues/5921](https://togithub.com/vitest-dev/vitest/issues/5921) [(98f9b)](https://togithub.com/vitest-dev/vitest/commit/98f9b7ab9)
- Add an option to return base64 from page.screenshot - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5993](https://togithub.com/vitest-dev/vitest/issues/5993) [(be323)](https://togithub.com/vitest-dev/vitest/commit/be3231763)
- Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://togithub.com/sheremet-va) [(f645e)](https://togithub.com/vitest-dev/vitest/commit/f645e48c5)
- **browser**:
- Add commands to communicate betweens server and the browser - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5097](https://togithub.com/vitest-dev/vitest/issues/5097) [(aa431)](https://togithub.com/vitest-dev/vitest/commit/aa431f4db)
- Do not reload the page during watch mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5810](https://togithub.com/vitest-dev/vitest/issues/5810) [(e5b9a)](https://togithub.com/vitest-dev/vitest/commit/e5b9a0be4)
- Support changing the viewport - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5811](https://togithub.com/vitest-dev/vitest/issues/5811) [(71851)](https://togithub.com/vitest-dev/vitest/commit/718512d80)
- Add browser iframe mouse interaction - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5815](https://togithub.com/vitest-dev/vitest/issues/5815) [(f29b9)](https://togithub.com/vitest-dev/vitest/commit/f29b9d408)
- Support `click` event - by [@
Configuration
📅 Schedule: Branch creation - "on sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates 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:
1.6.0
->2.0.2
1.6.0
->2.0.2
Release Notes
vitest-dev/vitest (@vitest/coverage-istanbul)
### [`v2.0.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) ##### 🐞 Bug Fixes - **browser**: - Remove [@vitest/runner](https://togithub.com/vitest/runner) > pretty-format from prebundling because it doesn't exist - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6075](https://togithub.com/vitest-dev/vitest/issues/6075) [(a169d)](https://togithub.com/vitest-dev/vitest/commit/a169d25a) - Inline pretty-format and replace picocolors with tinyrainbow - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6077](https://togithub.com/vitest-dev/vitest/issues/6077) [(80a43)](https://togithub.com/vitest-dev/vitest/commit/80a43d5c) - Remove `crypto.randomUUID` from the client - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6079](https://togithub.com/vitest-dev/vitest/issues/6079) [(04c83)](https://togithub.com/vitest-dev/vitest/commit/04c83acc) - Correctly overwrite loupe require - by [@sheremet-va](https://togithub.com/sheremet-va) [(756ac)](https://togithub.com/vitest-dev/vitest/commit/756ac2bc) - Dedupe @vitest/browser/client - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6081](https://togithub.com/vitest-dev/vitest/issues/6081) [(ee725)](https://togithub.com/vitest-dev/vitest/commit/ee725184) - Don't release keyboard automatically - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6083](https://togithub.com/vitest-dev/vitest/issues/6083) [(58fac)](https://togithub.com/vitest-dev/vitest/commit/58fac77b) - **ui**: - Test files notified only when running - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6069](https://togithub.com/vitest-dev/vitest/issues/6069) [(af7fe)](https://togithub.com/vitest-dev/vitest/commit/af7fec58) - Encode html entities in task name - by [@userquin](https://togithub.com/userquin) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6070](https://togithub.com/vitest-dev/vitest/issues/6070) [(7f0cc)](https://togithub.com/vitest-dev/vitest/commit/7f0cc24e) - **web-worker**: - Peer dependency version on `vitest` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6060](https://togithub.com/vitest-dev/vitest/issues/6060) [(95a2d)](https://togithub.com/vitest-dev/vitest/commit/95a2d870) ##### 🏎 Performance - **browser**: Don't import msw if no modules are mocked - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6073](https://togithub.com/vitest-dev/vitest/issues/6073) [(aa527)](https://togithub.com/vitest-dev/vitest/commit/aa52792a) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) ### [`v2.0.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6054](https://togithub.com/vitest-dev/vitest/issues/6054) [(4b03e)](https://togithub.com/vitest-dev/vitest/commit/4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6053](https://togithub.com/vitest-dev/vitest/issues/6053) [(f94ed)](https://togithub.com/vitest-dev/vitest/commit/f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6052](https://togithub.com/vitest-dev/vitest/issues/6052) [(4d559)](https://togithub.com/vitest-dev/vitest/commit/4d5597df) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1) ### [`v2.0.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.6.0...v2.0.0) Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the [documentation](https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0). ##### 🚨 Breaking Changes - Simplify mock function generic types and align with jest - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/4784](https://togithub.com/vitest-dev/vitest/pull/4784) [(a0c1d37)](https://togithub.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6) - Remove `--segfault-retry` - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5514](https://togithub.com/vitest-dev/vitest/issues/5514) [(ed60e)](https://togithub.com/vitest-dev/vitest/commit/ed60e405e) - This flag was introduced to combat `threads` segfaults. Our current recommendation is to use the new default `forks` pool instead. - Run suite hooks in a stack - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5609](https://togithub.com/vitest-dev/vitest/issues/5609) [(1277d)](https://togithub.com/vitest-dev/vitest/commit/1277dc1e3) - This feels like a more sensible default. Especially with the new [`onTestFinished`](https://vitest.dev/api/#ontestfinished) hook. This can make your tests run a little bit slower. - Enable `coverage.ignoreEmptyLines` by default - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5543](https://togithub.com/vitest-dev/vitest/issues/5543) [(31994)](https://togithub.com/vitest-dev/vitest/commit/31994942f) - ⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See [https://github.com/vitest-dev/vitest/issues/5423](https://togithub.com/vitest-dev/vitest/issues/5423) for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5434](https://togithub.com/vitest-dev/vitest/issues/5434) [(bcccc)](https://togithub.com/vitest-dev/vitest/commit/bcccce6df) - Previously, the `location` field pointed to the error location instead of the test location. Now it is aligned with jest and contains the `line` and `column` of a test function, but requires [`includeTaskLocation`](https://vitest.dev/config/#includeTaskLocation) to be enabled. - Update dependency chai to v5 - by **renovate\[bot]** and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5135](https://togithub.com/vitest-dev/vitest/issues/5135) [(73646)](https://togithub.com/vitest-dev/vitest/commit/73646b638) - Remove watchExclude - by [@patak-dev](https://togithub.com/patak-dev) in [https://github.com/vitest-dev/vitest/issues/5177](https://togithub.com/vitest-dev/vitest/issues/5177) [(d7371)](https://togithub.com/vitest-dev/vitest/commit/d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5047](https://togithub.com/vitest-dev/vitest/issues/5047) [(7f8f9)](https://togithub.com/vitest-dev/vitest/commit/7f8f9c0c0) - This change is done for compatibility issues - This pool may be slightly slower than previous `threads` pool: https://vitest.dev/guide/improving-performance.html#pool - `--merge-reports` to support coverage - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5736](https://togithub.com/vitest-dev/vitest/issues/5736) [(b7438)](https://togithub.com/vitest-dev/vitest/commit/b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5749](https://togithub.com/vitest-dev/vitest/issues/5749) [(5f710)](https://togithub.com/vitest-dev/vitest/commit/5f710182e) - ⚠️ Vitest no longer unwraps promises in `spy.mock.returns`. If the function is async or returns a promise, it will always succeed and have a `Promise` in `results`. To make migration easier, we introduced `spy.mock.settledResults` that unwraps promises and `expect().toHaveResolved()` matcher that accepts unwrapped value. - Do not exit process if global setup has failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5726](https://togithub.com/vitest-dev/vitest/issues/5726) [(ddb09)](https://togithub.com/vitest-dev/vitest/commit/ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5715](https://togithub.com/vitest-dev/vitest/issues/5715) [(f232f)](https://togithub.com/vitest-dev/vitest/commit/f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5802](https://togithub.com/vitest-dev/vitest/issues/5802) [(dd754)](https://togithub.com/vitest-dev/vitest/commit/dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5842](https://togithub.com/vitest-dev/vitest/issues/5842) [(49f34)](https://togithub.com/vitest-dev/vitest/commit/49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6013](https://togithub.com/vitest-dev/vitest/issues/6013) [(583dd)](https://togithub.com/vitest-dev/vitest/commit/583dd8a98) - ⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5435](https://togithub.com/vitest-dev/vitest/issues/5435) [(dbbbe)](https://togithub.com/vitest-dev/vitest/commit/dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/5491](https://togithub.com/vitest-dev/vitest/pull/5491) [(222ce44)](https://togithub.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa) - Support overriding `exclude` in coverage - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5997](https://togithub.com/vitest-dev/vitest/issues/5997) [(169bc)](https://togithub.com/vitest-dev/vitest/commit/169bc1fde) - ⚠️ Vitest coverage no longer adds test files to `exclude` patterns if `coverage.exclude` was overridden in the config. Add your test patterns manually, or merge your overrides with default ones: `['**/my-pattern.js', ...coverageConfigDefaults.exclude]`. See https://vitest.dev/config/#coverage-exclude for an example. ##### 🚀 Features - **browser**: - 🌐 This release lays the groundwork for the next iteration of Vitest Browser Mode. You can read more about our future plans at [https://github.com/vitest-dev/vitest/discussions/5828](https://togithub.com/vitest-dev/vitest/discussions/5828) - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5097](https://togithub.com/vitest-dev/vitest/issues/5097) [(aa431)](https://togithub.com/vitest-dev/vitest/commit/aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5810](https://togithub.com/vitest-dev/vitest/issues/5810) [(e5b9a)](https://togithub.com/vitest-dev/vitest/commit/e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5811](https://togithub.com/vitest-dev/vitest/issues/5811) [(71851)](https://togithub.com/vitest-dev/vitest/commit/718512d80) - Add browser iframe mouse interaction - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5815](https://togithub.com/vitest-dev/vitest/issues/5815) [(f29b9)](https://togithub.com/vitest-dev/vitest/commit/f29b9d408) - Support `click` event - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5777](https://togithub.com/vitest-dev/vitest/issues/5777) [(839c3)](https://togithub.com/vitest-dev/vitest/commit/839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5826](https://togithub.com/vitest-dev/vitest/issues/5826) [(18310)](https://togithub.com/vitest-dev/vitest/commit/1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5853](https://togithub.com/vitest-dev/vitest/issues/5853) [(81c42)](https://togithub.com/vitest-dev/vitest/commit/81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5882](https://togithub.com/vitest-dev/vitest/issues/5882) [(4dbea)](https://togithub.com/vitest-dev/vitest/commit/4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5910](https://togithub.com/vitest-dev/vitest/issues/5910) [(3a96a)](https://togithub.com/vitest-dev/vitest/commit/3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5938](https://togithub.com/vitest-dev/vitest/issues/5938) [(bec43)](https://togithub.com/vitest-dev/vitest/commit/bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5960](https://togithub.com/vitest-dev/vitest/issues/5960) [(49e97)](https://togithub.com/vitest-dev/vitest/commit/49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5975](https://togithub.com/vitest-dev/vitest/issues/5975) [(154cb)](https://togithub.com/vitest-dev/vitest/commit/154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5987](https://togithub.com/vitest-dev/vitest/issues/5987) [(200a4)](https://togithub.com/vitest-dev/vitest/commit/200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://togithub.com/userquin) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5984](https://togithub.com/vitest-dev/vitest/issues/5984) [(ff978)](https://togithub.com/vitest-dev/vitest/commit/ff978e58d) - Pretty print diffs coming from cause - by [@dubzzz](https://togithub.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5660](https://togithub.com/vitest-dev/vitest/issues/5660) [(6faf8)](https://togithub.com/vitest-dev/vitest/commit/6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5690](https://togithub.com/vitest-dev/vitest/issues/5690) [(a99a1)](https://togithub.com/vitest-dev/vitest/commit/a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5696](https://togithub.com/vitest-dev/vitest/issues/5696) [(5c308)](https://togithub.com/vitest-dev/vitest/commit/5c308edc6) - Add blob reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5663](https://togithub.com/vitest-dev/vitest/issues/5663) [(e2053)](https://togithub.com/vitest-dev/vitest/commit/e20538a36) - ✅ Run Vitest in separate processes with `--reporter=blob` flag to generate reports and combine them with `vitest --merge-reports` later! - Add expect.poll utility - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5708](https://togithub.com/vitest-dev/vitest/issues/5708) [(e2e0f)](https://togithub.com/vitest-dev/vitest/commit/e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5771](https://togithub.com/vitest-dev/vitest/issues/5771) [(a5033)](https://togithub.com/vitest-dev/vitest/commit/a50330eea) - Add median to `--output-json` - by [@Joristdh](https://togithub.com/Joristdh) in [https://github.com/vitest-dev/vitest/issues/5745](https://togithub.com/vitest-dev/vitest/issues/5745) [(0766b)](https://togithub.com/vitest-dev/vitest/commit/0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5784](https://togithub.com/vitest-dev/vitest/issues/5784) [(b2469)](https://togithub.com/vitest-dev/vitest/commit/b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5765](https://togithub.com/vitest-dev/vitest/issues/5765) [(7b2f6)](https://togithub.com/vitest-dev/vitest/commit/7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5729](https://togithub.com/vitest-dev/vitest/issues/5729) [(fc53f)](https://togithub.com/vitest-dev/vitest/commit/fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5720](https://togithub.com/vitest-dev/vitest/issues/5720) [(e4fe6)](https://togithub.com/vitest-dev/vitest/commit/e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5808](https://togithub.com/vitest-dev/vitest/issues/5808) [(3796d)](https://togithub.com/vitest-dev/vitest/commit/3796dd7e0) - Image type add bmp - by **btea** in [https://github.com/vitest-dev/vitest/issues/5921](https://togithub.com/vitest-dev/vitest/issues/5921) [(98f9b)](https://togithub.com/vitest-dev/vitest/commit/98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5993](https://togithub.com/vitest-dev/vitest/issues/5993) [(be323)](https://togithub.com/vitest-dev/vitest/commit/be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://togithub.com/sheremet-va) [(f645e)](https://togithub.com/vitest-dev/vitest/commit/f645e48c5) - **config**: - Allow percentage value for workers option - by [@syi0808](https://togithub.com/syi0808) in [https://github.com/vitest-dev/vitest/issues/5982](https://togithub.com/vitest-dev/vitest/issues/5982) [(b1a27)](https://togithub.com/vitest-dev/vitest/commit/b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://togithub.com/hi-ogawa) and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5861](https://togithub.com/vitest-dev/vitest/issues/5861) [(c2380)](https://togithub.com/vitest-dev/vitest/commit/c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5955](https://togithub.com/vitest-dev/vitest/issues/5955) [(3b31a)](https://togithub.com/vitest-dev/vitest/commit/3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5807](https://togithub.com/vitest-dev/vitest/issues/5807) [(7900f)](https://togithub.com/vitest-dev/vitest/commit/7900f9f89) - Load module graph on tab selection - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5844](https://togithub.com/vitest-dev/vitest/issues/5844) [(b117e)](https://togithub.com/vitest-dev/vitest/commit/b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5907](https://togithub.com/vitest-dev/vitest/issues/5907) [(45dfc)](https://togithub.com/vitest-dev/vitest/commit/45dfc95ae) - Add initializing explorer logic - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5941](https://togithub.com/vitest-dev/vitest/issues/5941) [(c31c4)](https://togithub.com/vitest-dev/vitest/commit/c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://togithub.com/userquin) and **Anjorin Damilare** in [https://github.com/vitest-dev/vitest/issues/5948](https://togithub.com/vitest-dev/vitest/issues/5948) [(7ec29)](https://togithub.com/vitest-dev/vitest/commit/7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5906](https://togithub.com/vitest-dev/vitest/issues/5906) [(e6020)](https://togithub.com/vitest-dev/vitest/commit/e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5678](https://togithub.com/vitest-dev/vitest/issues/5678) [(34a80)](https://togithub.com/vitest-dev/vitest/commit/34a80b392) - Repeatable `--exclude` option - by [@fregante](https://togithub.com/fregante) in [https://github.com/vitest-dev/vitest/issues/5782](https://togithub.com/vitest-dev/vitest/issues/5782) [(d6700)](https://togithub.com/vitest-dev/vitest/commit/d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5790](https://togithub.com/vitest-dev/vitest/issues/5790) [(b881e)](https://togithub.com/vitest-dev/vitest/commit/b881e88b2) - Install UI icons - by [@sheremet-va](https://togithub.com/sheremet-va) [(b84f1)](https://togithub.com/vitest-dev/vitest/commit/b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5804](https://togithub.com/vitest-dev/vitest/issues/5804) [(a820e)](https://togithub.com/vitest-dev/vitest/commit/a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://togithub.com/pedro00dk) in [https://github.com/vitest-dev/vitest/issues/5875](https://togithub.com/vitest-dev/vitest/issues/5875) [(04107)](https://togithub.com/vitest-dev/vitest/commit/041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://togithub.com/eddienubes) in [https://github.com/vitest-dev/vitest/issues/5848](https://togithub.com/vitest-dev/vitest/issues/5848) and [https://github.com/vitest-dev/vitest/issues/5884](https://togithub.com/vitest-dev/vitest/issues/5884) [(8d55d)](https://togithub.com/vitest-dev/vitest/commit/8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5917](https://togithub.com/vitest-dev/vitest/issues/5917) [(2bd8d)](https://togithub.com/vitest-dev/vitest/commit/2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://togithub.com/marvinhagemeister) in [https://github.com/vitest-dev/vitest/issues/5972](https://togithub.com/vitest-dev/vitest/issues/5972) [(e0f45)](https://togithub.com/vitest-dev/vitest/commit/e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://togithub.com/sheremet-va) [(caef4)](https://togithub.com/vitest-dev/vitest/commit/caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://togithub.com/kxalex) in [https://github.com/vitest-dev/vitest/issues/5978](https://togithub.com/vitest-dev/vitest/issues/5978) [(d7f23)](https://togithub.com/vitest-dev/vitest/commit/d7f23d08c) - Include pretty-format in [@vitest/runner](https://togithub.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://togithub.com/sheremet-va) [(42bd4)](https://togithub.com/vitest-dev/vitest/commit/42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4409](https://togithub.com/vitest-dev/vitest/issues/4409) [(8f65a)](https://togithub.com/vitest-dev/vitest/commit/8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5959](https://togithub.com/vitest-dev/vitest/issues/5959) [(0eda9)](https://togithub.com/vitest-dev/vitest/commit/0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5926](https://togithub.com/vitest-dev/vitest/issues/5926) [(e9b63)](https://togithub.com/vitest-dev/vitest/commit/e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://togithub.com/sheremet-va) [(d41e4)](https://togithub.com/vitest-dev/vitest/commit/d41e46a81) - Browser actions icons colors - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5816](https://togithub.com/vitest-dev/vitest/issues/5816) [(f9d9b)](https://togithub.com/vitest-dev/vitest/commit/f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5821](https://togithub.com/vitest-dev/vitest/issues/5821) [(5ebb3)](https://togithub.com/vitest-dev/vitest/commit/5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://togithub.com/sheremet-va) [(2220b)](https://togithub.com/vitest-dev/vitest/commit/2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5823](https://togithub.com/vitest-dev/vitest/issues/5823) [(34a31)](https://togithub.com/vitest-dev/vitest/commit/34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5827](https://togithub.com/vitest-dev/vitest/issues/5827) [(087fa)](https://togithub.com/vitest-dev/vitest/commit/087fa87c3) - Support [@testing-library/vue](https://togithub.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://togithub.com/sheremet-va) [(76b82)](https://togithub.com/vitest-dev/vitest/commit/76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5833](https://togithub.com/vitest-dev/vitest/issues/5833) [(a7581)](https://togithub.com/vitest-dev/vitest/commit/a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5836](https://togithub.com/vitest-dev/vitest/issues/5836) [(76e13)](https://togithub.com/vitest-dev/vitest/commit/76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5839](https://togithub.com/vitest-dev/vitest/issues/5839) [(c79b3)](https://togithub.com/vitest-dev/vitest/commit/c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5841](https://togithub.com/vitest-dev/vitest/issues/5841) [(caaaf)](https://togithub.com/vitest-dev/vitest/commit/caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5843](https://togithub.com/vitest-dev/vitest/issues/5843) [(f15b4)](https://togithub.com/vitest-dev/vitest/commit/f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5845](https://togithub.com/vitest-dev/vitest/issues/5845) [(47003)](https://togithub.com/vitest-dev/vitest/commit/470036794) - Show correct prepare time - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5852](https://togithub.com/vitest-dev/vitest/issues/5852) [(52d54)](https://togithub.com/vitest-dev/vitest/commit/52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5920](https://togithub.com/vitest-dev/vitest/issues/5920) [(f33da)](https://togithub.com/vitest-dev/vitest/commit/f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5925](https://togithub.com/vitest-dev/vitest/issues/5925) [(2380c)](https://togithub.com/vitest-dev/vitest/commit/2380cb95e) - Remove "util" warning - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5935](https://togithub.com/vitest-dev/vitest/issues/5935) [(48f28)](https://togithub.com/vitest-dev/vitest/commit/48f28f731) - Remove hacky retry - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5971](https://togithub.com/vitest-dev/vitest/issues/5971) [(2a2c9)](https://togithub.com/vitest-dev/vitest/commit/2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5974](https://togithub.com/vitest-dev/vitest/issues/5974) [(14a21)](https://togithub.com/vitest-dev/vitest/commit/14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5992](https://togithub.com/vitest-dev/vitest/issues/5992) [(15289)](https://togithub.com/vitest-dev/vitest/commit/152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6003](https://togithub.com/vitest-dev/vitest/issues/6003) [(62aa7)](https://togithub.com/vitest-dev/vitest/commit/62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6035](https://togithub.com/vitest-dev/vitest/issues/6035) [(057b4)](https://togithub.com/vitest-dev/vitest/commit/057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6036](https://togithub.com/vitest-dev/vitest/issues/6036) [(2e3c8)](https://togithub.com/vitest-dev/vitest/commit/2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5731](https://togithub.com/vitest-dev/vitest/issues/5731) [(c469c)](https://togithub.com/vitest-dev/vitest/commit/c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5818](https://togithub.com/vitest-dev/vitest/issues/5818) [(7afb3)](https://togithub.com/vitest-dev/vitest/commit/7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5954](https://togithub.com/vitest-dev/vitest/issues/5954) [(70805)](https://togithub.com/vitest-dev/vitest/commit/708051319) - Exclude bench files from coverage - by [@kouak](https://togithub.com/kouak) in [https://github.com/vitest-dev/vitest/issues/5983](https://togithub.com/vitest-dev/vitest/issues/5983) [(429e1)](https://togithub.com/vitest-dev/vitest/commit/429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5998](https://togithub.com/vitest-dev/vitest/issues/5998) [(6d884)](https://togithub.com/vitest-dev/vitest/commit/6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://togithub.com/Gravitonic) in [https://github.com/vitest-dev/vitest/issues/6006](https://togithub.com/vitest-dev/vitest/issues/6006) [(2898a)](https://togithub.com/vitest-dev/vitest/commit/2898a525d) - Remove work-around for implicit `else` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6014](https://togithub.com/vitest-dev/vitest/issues/6014) [(368c1)](https://togithub.com/vitest-dev/vitest/commit/368c13728) - **deps**: - Update dependency [@testing-library/dom](https://togithub.com/testing-library/dom) to v10 - by **renovate\[bot]** in [https://github.com/vitest-dev/vitest/issues/5866](https://togithub.com/vitest-dev/vitest/issues/5866) [(e9745)](https://togithub.com/vitest-dev/vitest/commit/e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5867](https://togithub.com/vitest-dev/vitest/issues/5867) [(0a715)](https://togithub.com/vitest-dev/vitest/commit/0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5692](https://togithub.com/vitest-dev/vitest/issues/5692) [(1532c)](https://togithub.com/vitest-dev/vitest/commit/1532c19a0) - **forks**: - Resolve `poolOptions.vitest-dev/vitest (vitest)
### [`v2.0.2`](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) ### [`v2.0.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6054](https://togithub.com/vitest-dev/vitest/issues/6054) [(4b03e)](https://togithub.com/vitest-dev/vitest/commit/4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6053](https://togithub.com/vitest-dev/vitest/issues/6053) [(f94ed)](https://togithub.com/vitest-dev/vitest/commit/f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6052](https://togithub.com/vitest-dev/vitest/issues/6052) [(4d559)](https://togithub.com/vitest-dev/vitest/commit/4d5597df) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1) ### [`v2.0.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.6.0...v2.0.0) Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the [documentation](https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0). ##### 🚨 Breaking Changes - Simplify mock function generic types and align with jest - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/4784](https://togithub.com/vitest-dev/vitest/pull/4784) [(a0c1d37)](https://togithub.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6) - Remove `--segfault-retry` - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5514](https://togithub.com/vitest-dev/vitest/issues/5514) [(ed60e)](https://togithub.com/vitest-dev/vitest/commit/ed60e405e) - This flag was introduced to combat `threads` segfaults. Our current recommendation is to use the new default `forks` pool instead. - Run suite hooks in a stack - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5609](https://togithub.com/vitest-dev/vitest/issues/5609) [(1277d)](https://togithub.com/vitest-dev/vitest/commit/1277dc1e3) - This feels like a more sensible default. Especially with the new [`onTestFinished`](https://vitest.dev/api/#ontestfinished) hook. This can make your tests run a little bit slower. - Enable `coverage.ignoreEmptyLines` by default - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5543](https://togithub.com/vitest-dev/vitest/issues/5543) [(31994)](https://togithub.com/vitest-dev/vitest/commit/31994942f) - ⚠️ This change may cause significant differences in your coverage results compared to Vitest v1. These changes are expected as coverage reporting is now more accurate. See [https://github.com/vitest-dev/vitest/issues/5423](https://togithub.com/vitest-dev/vitest/issues/5423) for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5434](https://togithub.com/vitest-dev/vitest/issues/5434) [(bcccc)](https://togithub.com/vitest-dev/vitest/commit/bcccce6df) - Previously, the `location` field pointed to the error location instead of the test location. Now it is aligned with jest and contains the `line` and `column` of a test function, but requires [`includeTaskLocation`](https://vitest.dev/config/#includeTaskLocation) to be enabled. - Update dependency chai to v5 - by **renovate\[bot]** and [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5135](https://togithub.com/vitest-dev/vitest/issues/5135) [(73646)](https://togithub.com/vitest-dev/vitest/commit/73646b638) - Remove watchExclude - by [@patak-dev](https://togithub.com/patak-dev) in [https://github.com/vitest-dev/vitest/issues/5177](https://togithub.com/vitest-dev/vitest/issues/5177) [(d7371)](https://togithub.com/vitest-dev/vitest/commit/d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5047](https://togithub.com/vitest-dev/vitest/issues/5047) [(7f8f9)](https://togithub.com/vitest-dev/vitest/commit/7f8f9c0c0) - This change is done for compatibility issues - This pool may be slightly slower than previous `threads` pool: https://vitest.dev/guide/improving-performance.html#pool - `--merge-reports` to support coverage - by [@AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5736](https://togithub.com/vitest-dev/vitest/issues/5736) [(b7438)](https://togithub.com/vitest-dev/vitest/commit/b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5749](https://togithub.com/vitest-dev/vitest/issues/5749) [(5f710)](https://togithub.com/vitest-dev/vitest/commit/5f710182e) - ⚠️ Vitest no longer unwraps promises in `spy.mock.returns`. If the function is async or returns a promise, it will always succeed and have a `Promise` in `results`. To make migration easier, we introduced `spy.mock.settledResults` that unwraps promises and `expect().toHaveResolved()` matcher that accepts unwrapped value. - Do not exit process if global setup has failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5726](https://togithub.com/vitest-dev/vitest/issues/5726) [(ddb09)](https://togithub.com/vitest-dev/vitest/commit/ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5715](https://togithub.com/vitest-dev/vitest/issues/5715) [(f232f)](https://togithub.com/vitest-dev/vitest/commit/f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5802](https://togithub.com/vitest-dev/vitest/issues/5802) [(dd754)](https://togithub.com/vitest-dev/vitest/commit/dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5842](https://togithub.com/vitest-dev/vitest/issues/5842) [(49f34)](https://togithub.com/vitest-dev/vitest/commit/49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6013](https://togithub.com/vitest-dev/vitest/issues/6013) [(583dd)](https://togithub.com/vitest-dev/vitest/commit/583dd8a98) - ⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5435](https://togithub.com/vitest-dev/vitest/issues/5435) [(dbbbe)](https://togithub.com/vitest-dev/vitest/commit/dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://togithub.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/5491](https://togithub.com/vitest-dev/vitest/pull/5491) [(222ce44)](https://togithub.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://togithub.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5660](https://togithub.com/vitest-dev/vitest/issues/5660) [(6faf8)](https://togithub.com/vitest-dev/vitest/commit/6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5690](https://togithub.com/vitest-dev/vitest/issues/5690) [(a99a1)](https://togithub.com/vitest-dev/vitest/commit/a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5696](https://togithub.com/vitest-dev/vitest/issues/5696) [(5c308)](https://togithub.com/vitest-dev/vitest/commit/5c308edc6) - Add blob reporter - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5663](https://togithub.com/vitest-dev/vitest/issues/5663) [(e2053)](https://togithub.com/vitest-dev/vitest/commit/e20538a36) - Add expect.poll utility - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5708](https://togithub.com/vitest-dev/vitest/issues/5708) [(e2e0f)](https://togithub.com/vitest-dev/vitest/commit/e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5771](https://togithub.com/vitest-dev/vitest/issues/5771) [(a5033)](https://togithub.com/vitest-dev/vitest/commit/a50330eea) - Add median to `--output-json` - by [@Joristdh](https://togithub.com/Joristdh) in [https://github.com/vitest-dev/vitest/issues/5745](https://togithub.com/vitest-dev/vitest/issues/5745) [(0766b)](https://togithub.com/vitest-dev/vitest/commit/0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5784](https://togithub.com/vitest-dev/vitest/issues/5784) [(b2469)](https://togithub.com/vitest-dev/vitest/commit/b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5765](https://togithub.com/vitest-dev/vitest/issues/5765) [(7b2f6)](https://togithub.com/vitest-dev/vitest/commit/7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5729](https://togithub.com/vitest-dev/vitest/issues/5729) [(fc53f)](https://togithub.com/vitest-dev/vitest/commit/fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5720](https://togithub.com/vitest-dev/vitest/issues/5720) [(e4fe6)](https://togithub.com/vitest-dev/vitest/commit/e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5808](https://togithub.com/vitest-dev/vitest/issues/5808) [(3796d)](https://togithub.com/vitest-dev/vitest/commit/3796dd7e0) - Image type add bmp - by **btea** in [https://github.com/vitest-dev/vitest/issues/5921](https://togithub.com/vitest-dev/vitest/issues/5921) [(98f9b)](https://togithub.com/vitest-dev/vitest/commit/98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5993](https://togithub.com/vitest-dev/vitest/issues/5993) [(be323)](https://togithub.com/vitest-dev/vitest/commit/be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://togithub.com/sheremet-va) [(f645e)](https://togithub.com/vitest-dev/vitest/commit/f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5097](https://togithub.com/vitest-dev/vitest/issues/5097) [(aa431)](https://togithub.com/vitest-dev/vitest/commit/aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5810](https://togithub.com/vitest-dev/vitest/issues/5810) [(e5b9a)](https://togithub.com/vitest-dev/vitest/commit/e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5811](https://togithub.com/vitest-dev/vitest/issues/5811) [(71851)](https://togithub.com/vitest-dev/vitest/commit/718512d80) - Add browser iframe mouse interaction - by [@userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5815](https://togithub.com/vitest-dev/vitest/issues/5815) [(f29b9)](https://togithub.com/vitest-dev/vitest/commit/f29b9d408) - Support `click` event - by [@Configuration
📅 Schedule: Branch creation - "on sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.