-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: --merge-reports
to support coverage
#5736
feat!: --merge-reports
to support coverage
#5736
Conversation
bcb3ba8
to
e910458
Compare
a8b475d
to
90a9848
Compare
We might need to extend |
I would like the blob report to just be a single blob file with anything needed for merging. Can't we record everything to a directory (even tmp directory is fine by me), then archive it and unarchive during mering? |
That would be great. Should we only allow user to specify directory and nothing else? Then store both test and coverage reports there. When merging the reports, we would respect reporters' |
90a9848
to
4c913db
Compare
I mean we can still allow specifying the blob name, why not? In the end it should output a single file |
Does this mean that coverage reports should be included in the same file as test results? |
Yes, I would expect everything to be inside that blob |
--merge-reports
to support coverage--merge-reports
to support coverage
73fb841
to
dad15a1
Compare
dad15a1
to
626edee
Compare
626edee
to
0d2f152
Compare
0d2f152
to
34d3706
Compare
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/main/packages/coverage-v8#readme) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8)) | [`^1.6.0` -> `^2.0.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/1.6.0/2.0.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@vitest%2fcoverage-v8/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitest%2fcoverage-v8/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitest%2fcoverage-v8/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitest%2fcoverage-v8/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://github.com/vitest-dev/vitest) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`^1.6.0` -> `^2.0.0`](https://renovatebot.com/diffs/npm/vitest/1.6.0/2.0.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [vitest-mock-extended](https://github.com/eratio08/vitest-mock-extended) | [`^1.3.1` -> `^2.0.0`](https://renovatebot.com/diffs/npm/vitest-mock-extended/1.3.1/2.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vitest-mock-extended/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest-mock-extended/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest-mock-extended/1.3.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest-mock-extended/1.3.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest (@​vitest/coverage-v8)</summary> ### [`v2.0.5`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6149](https://github.com/vitest-dev/vitest/issues/6149) [<samp>(13d85)</samp>](https://github.com/vitest-dev/vitest/commit/13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6191](https://github.com/vitest-dev/vitest/issues/6191) [<samp>(29176)</samp>](https://github.com/vitest-dev/vitest/commit/291766d7) - `testNamePattern` adds leading space - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6186](https://github.com/vitest-dev/vitest/issues/6186) [<samp>(073a5)</samp>](https://github.com/vitest-dev/vitest/commit/073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6192](https://github.com/vitest-dev/vitest/issues/6192) [<samp>(e6fbc)</samp>](https://github.com/vitest-dev/vitest/commit/e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6088](https://github.com/vitest-dev/vitest/issues/6088) [<samp>(883f3)</samp>](https://github.com/vitest-dev/vitest/commit/883f3482) - Correctly import optimized module in vi.importActual - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6219](https://github.com/vitest-dev/vitest/issues/6219) [<samp>(804ff)</samp>](https://github.com/vitest-dev/vitest/commit/804ff2fd) - Passing options to hover/unhover - by [@​MNeverOff](https://github.com/MNeverOff) in [https://github.com/vitest-dev/vitest/issues/6175](https://github.com/vitest-dev/vitest/issues/6175) [<samp>(d4c00)</samp>](https://github.com/vitest-dev/vitest/commit/d4c005bc) - Improve unique CSS selector generation - by [@​zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in [https://github.com/vitest-dev/vitest/issues/6243](https://github.com/vitest-dev/vitest/issues/6243) [<samp>(e7acd)</samp>](https://github.com/vitest-dev/vitest/commit/e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](https://github.com/vitest-dev/vitest/commit/93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6198](https://github.com/vitest-dev/vitest/issues/6198) [<samp>(8cd82)</samp>](https://github.com/vitest-dev/vitest/commit/8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6204](https://github.com/vitest-dev/vitest/issues/6204) [<samp>(a48be)</samp>](https://github.com/vitest-dev/vitest/commit/a48be6ff) - **web-worker**: - Expose globals on self - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6170](https://github.com/vitest-dev/vitest/issues/6170) [<samp>(12bb5)</samp>](https://github.com/vitest-dev/vitest/commit/12bb567e) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5) ### [`v2.0.4`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@​hahanein](https://github.com/hahanein) in [https://github.com/vitest-dev/vitest/issues/5105](https://github.com/vitest-dev/vitest/issues/5105) [<samp>(38269)</samp>](https://github.com/vitest-dev/vitest/commit/38269415) - Resolve assets imported with `require` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6159](https://github.com/vitest-dev/vitest/issues/6159) [<samp>(807a2)</samp>](https://github.com/vitest-dev/vitest/commit/807a2cbc) - **browser**: - Don't panic if [@​vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6135](https://github.com/vitest-dev/vitest/issues/6135) [<samp>(ccfcd)</samp>](https://github.com/vitest-dev/vitest/commit/ccfcd488) - Set global filepath - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6190](https://github.com/vitest-dev/vitest/issues/6190) [<samp>(0d0b4)</samp>](https://github.com/vitest-dev/vitest/commit/0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6113](https://github.com/vitest-dev/vitest/issues/6113) [<samp>(2d620)</samp>](https://github.com/vitest-dev/vitest/commit/2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@​thor-juhasz](https://github.com/thor-juhasz) and [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6172](https://github.com/vitest-dev/vitest/issues/6172) [<samp>(02e3f)</samp>](https://github.com/vitest-dev/vitest/commit/02e3f003) - Consistent type-only file handling - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6183](https://github.com/vitest-dev/vitest/issues/6183) [<samp>(90576)</samp>](https://github.com/vitest-dev/vitest/commit/90576148) - Ignore `*.cts` files - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6189](https://github.com/vitest-dev/vitest/issues/6189) [<samp>(5da45)</samp>](https://github.com/vitest-dev/vitest/commit/5da45db1) - Add `thresholds.<glob>.100` option - by [@​thor-juhasz](https://github.com/thor-juhasz) and [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6174](https://github.com/vitest-dev/vitest/issues/6174) [<samp>(f6845)</samp>](https://github.com/vitest-dev/vitest/commit/f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6181](https://github.com/vitest-dev/vitest/issues/6181) [<samp>(7a75b)</samp>](https://github.com/vitest-dev/vitest/commit/7a75bd4c) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4) ### [`v2.0.3`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6106](https://github.com/vitest-dev/vitest/issues/6106) [<samp>(840e0)</samp>](https://github.com/vitest-dev/vitest/commit/840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6110](https://github.com/vitest-dev/vitest/issues/6110) [<samp>(f8519)</samp>](https://github.com/vitest-dev/vitest/commit/f851982e) - **browser**: - Don't import from "vite" - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](https://github.com/vitest-dev/vitest/commit/35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6108](https://github.com/vitest-dev/vitest/issues/6108) [<samp>(f44cc)</samp>](https://github.com/vitest-dev/vitest/commit/f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6086](https://github.com/vitest-dev/vitest/issues/6086) [<samp>(e9f9a)</samp>](https://github.com/vitest-dev/vitest/commit/e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@​syi0808](https://github.com/syi0808) in [https://github.com/vitest-dev/vitest/issues/6109](https://github.com/vitest-dev/vitest/issues/6109) [<samp>(93ebd)</samp>](https://github.com/vitest-dev/vitest/commit/93ebdefc) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3) ### [`v2.0.2`](https://github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) ### [`v2.0.1`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) [Compare Source](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6054](https://github.com/vitest-dev/vitest/issues/6054) [<samp>(4b03e)</samp>](https://github.com/vitest-dev/vitest/commit/4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6053](https://github.com/vitest-dev/vitest/issues/6053) [<samp>(f94ed)</samp>](https://github.com/vitest-dev/vitest/commit/f94ede02) - **vitest**: Print only running files, not every file - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6052](https://github.com/vitest-dev/vitest/issues/6052) [<samp>(4d559)</samp>](https://github.com/vitest-dev/vitest/commit/4d5597df) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1) ### [`v2.0.0`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.0) [Compare Source](https://github.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://github.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/4784](https://github.com/vitest-dev/vitest/pull/4784) [<samp>(a0c1d37)</samp>](https://github.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6) - Remove `--segfault-retry` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5514](https://github.com/vitest-dev/vitest/issues/5514) [<samp>(ed60e)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5609](https://github.com/vitest-dev/vitest/issues/5609) [<samp>(1277d)</samp>](https://github.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://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5543](https://github.com/vitest-dev/vitest/issues/5543) [<samp>(31994)</samp>](https://github.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://github.com/vitest-dev/vitest/issues/5423) for more details. - Add correct location and snapshot fields in json reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5434](https://github.com/vitest-dev/vitest/issues/5434) [<samp>(bcccc)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5135](https://github.com/vitest-dev/vitest/issues/5135) [<samp>(73646)</samp>](https://github.com/vitest-dev/vitest/commit/73646b638) - Remove watchExclude - by [@​patak-dev](https://github.com/patak-dev) in [https://github.com/vitest-dev/vitest/issues/5177](https://github.com/vitest-dev/vitest/issues/5177) [<samp>(d7371)</samp>](https://github.com/vitest-dev/vitest/commit/d7371eae3) - Change default `pool` to `'forks'` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5047](https://github.com/vitest-dev/vitest/issues/5047) [<samp>(7f8f9)</samp>](https://github.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://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5736](https://github.com/vitest-dev/vitest/issues/5736) [<samp>(b7438)</samp>](https://github.com/vitest-dev/vitest/commit/b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5749](https://github.com/vitest-dev/vitest/issues/5749) [<samp>(5f710)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5726](https://github.com/vitest-dev/vitest/issues/5726) [<samp>(ddb09)</samp>](https://github.com/vitest-dev/vitest/commit/ddb09eb12) - Don't exit process if config failed - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5715](https://github.com/vitest-dev/vitest/issues/5715) [<samp>(f232f)</samp>](https://github.com/vitest-dev/vitest/commit/f232fdd61) - Add meta to `json` output - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5802](https://github.com/vitest-dev/vitest/issues/5802) [<samp>(dd754)</samp>](https://github.com/vitest-dev/vitest/commit/dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5842](https://github.com/vitest-dev/vitest/issues/5842) [<samp>(49f34)</samp>](https://github.com/vitest-dev/vitest/commit/49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6013](https://github.com/vitest-dev/vitest/issues/6013) [<samp>(583dd)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5435](https://github.com/vitest-dev/vitest/issues/5435) [<samp>(dbbbe)</samp>](https://github.com/vitest-dev/vitest/commit/dbbbe4304) - Support concurrent suites - by **[@​hi-ogawa](https://github.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/5491](https://github.com/vitest-dev/vitest/pull/5491) [<samp>(222ce44)</samp>](https://github.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa) ##### 🚀 Features - Pretty print diffs coming from cause - by [@​dubzzz](https://github.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5660](https://github.com/vitest-dev/vitest/issues/5660) [<samp>(6faf8)</samp>](https://github.com/vitest-dev/vitest/commit/6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5690](https://github.com/vitest-dev/vitest/issues/5690) [<samp>(a99a1)</samp>](https://github.com/vitest-dev/vitest/commit/a99a14c1c) - Remove deprecated options - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5696](https://github.com/vitest-dev/vitest/issues/5696) [<samp>(5c308)</samp>](https://github.com/vitest-dev/vitest/commit/5c308edc6) - Add blob reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5663](https://github.com/vitest-dev/vitest/issues/5663) [<samp>(e2053)</samp>](https://github.com/vitest-dev/vitest/commit/e20538a36) - Add expect.poll utility - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5708](https://github.com/vitest-dev/vitest/issues/5708) [<samp>(e2e0f)</samp>](https://github.com/vitest-dev/vitest/commit/e2e0ff46a) - Add browser.ui option - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5771](https://github.com/vitest-dev/vitest/issues/5771) [<samp>(a5033)</samp>](https://github.com/vitest-dev/vitest/commit/a50330eea) - Add median to `--output-json` - by [@​Joristdh](https://github.com/Joristdh) in [https://github.com/vitest-dev/vitest/issues/5745](https://github.com/vitest-dev/vitest/issues/5745) [<samp>(0766b)</samp>](https://github.com/vitest-dev/vitest/commit/0766b7f72) - Allow augmenting config.test.env - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5784](https://github.com/vitest-dev/vitest/issues/5784) [<samp>(b2469)</samp>](https://github.com/vitest-dev/vitest/commit/b24691efd) - Implement module mocking in browser mode - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5765](https://github.com/vitest-dev/vitest/issues/5765) [<samp>(7b2f6)</samp>](https://github.com/vitest-dev/vitest/commit/7b2f64cfa) - Allow configuring expect options in the config - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5729](https://github.com/vitest-dev/vitest/issues/5729) [<samp>(fc53f)</samp>](https://github.com/vitest-dev/vitest/commit/fc53f5634) - Add an option to print console stack trace - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5720](https://github.com/vitest-dev/vitest/issues/5720) [<samp>(e4fe6)</samp>](https://github.com/vitest-dev/vitest/commit/e4fe6f51a) - Add browser frame to UI - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5808](https://github.com/vitest-dev/vitest/issues/5808) [<samp>(3796d)</samp>](https://github.com/vitest-dev/vitest/commit/3796dd7e0) - Image type add bmp - by **btea** in [https://github.com/vitest-dev/vitest/issues/5921](https://github.com/vitest-dev/vitest/issues/5921) [<samp>(98f9b)</samp>](https://github.com/vitest-dev/vitest/commit/98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5993](https://github.com/vitest-dev/vitest/issues/5993) [<samp>(be323)</samp>](https://github.com/vitest-dev/vitest/commit/be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](https://github.com/vitest-dev/vitest/commit/f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5097](https://github.com/vitest-dev/vitest/issues/5097) [<samp>(aa431)</samp>](https://github.com/vitest-dev/vitest/commit/aa431f4db) - Do not reload the page during watch mode - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5810](https://github.com/vitest-dev/vitest/issues/5810) [<samp>(e5b9a)</samp>](https://github.com/vitest-dev/vitest/commit/e5b9a0be4) - Support changing the viewport - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5811](https://github.com/vitest-dev/vitest/issues/5811) [<samp>(71851)</samp>](https://github.com/vitest-dev/vitest/commit/718512d80) - Add browser iframe mouse interaction - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5815](https://github.com/vitest-dev/vitest/issues/5815) [<samp>(f29b9)</samp>](https://github.com/vitest-dev/vitest/commit/f29b9d408) - Support `click` event - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5777](https://github.com/vitest-dev/vitest/issues/5777) [<samp>(839c3)</samp>](https://github.com/vitest-dev/vitest/commit/839c39f06) - Rename none provider to preview, make it default - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5826](https://github.com/vitest-dev/vitest/issues/5826) [<samp>(18310)</samp>](https://github.com/vitest-dev/vitest/commit/1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5853](https://github.com/vitest-dev/vitest/issues/5853) [<samp>(81c42)</samp>](https://github.com/vitest-dev/vitest/commit/81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5882](https://github.com/vitest-dev/vitest/issues/5882) [<samp>(4dbea)</samp>](https://github.com/vitest-dev/vitest/commit/4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5910](https://github.com/vitest-dev/vitest/issues/5910) [<samp>(3a96a)</samp>](https://github.com/vitest-dev/vitest/commit/3a96a3d0e) - Expose CDP in the browser - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5938](https://github.com/vitest-dev/vitest/issues/5938) [<samp>(bec43)</samp>](https://github.com/vitest-dev/vitest/commit/bec434cb6) - Add "init" command for browser tests - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5960](https://github.com/vitest-dev/vitest/issues/5960) [<samp>(49e97)</samp>](https://github.com/vitest-dev/vitest/commit/49e973cb9) - Add an option to take screenshots if the browser test fails - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5975](https://github.com/vitest-dev/vitest/issues/5975) [<samp>(154cb)</samp>](https://github.com/vitest-dev/vitest/commit/154cb22de) - Add `tripleClick` to interactive api - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5987](https://github.com/vitest-dev/vitest/issues/5987) [<samp>(200a4)</samp>](https://github.com/vitest-dev/vitest/commit/200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@​userquin](https://github.com/userquin) and [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5984](https://github.com/vitest-dev/vitest/issues/5984) [<samp>(ff978)</samp>](https://github.com/vitest-dev/vitest/commit/ff978e58d) - **config**: - Allow percentage value for workers option - by [@​syi0808](https://github.com/syi0808) in [https://github.com/vitest-dev/vitest/issues/5982](https://github.com/vitest-dev/vitest/issues/5982) [<samp>(b1a27)</samp>](https://github.com/vitest-dev/vitest/commit/b1a27d404) - **runner**: - Implement `test.for` - by [@​hi-ogawa](https://github.com/hi-ogawa) and [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5861](https://github.com/vitest-dev/vitest/issues/5861) [<samp>(c2380)</samp>](https://github.com/vitest-dev/vitest/commit/c238072fd) - **spy**: - Collect mock.contexts - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5955](https://github.com/vitest-dev/vitest/issues/5955) [<samp>(3b31a)</samp>](https://github.com/vitest-dev/vitest/commit/3b31a56d5) - **ui**: - Render tests in a tree - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5807](https://github.com/vitest-dev/vitest/issues/5807) [<samp>(7900f)</samp>](https://github.com/vitest-dev/vitest/commit/7900f9f89) - Load module graph on tab selection - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5844](https://github.com/vitest-dev/vitest/issues/5844) [<samp>(b117e)</samp>](https://github.com/vitest-dev/vitest/commit/b117e8756) - Replace navigation tree with test explorer - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5907](https://github.com/vitest-dev/vitest/issues/5907) [<samp>(45dfc)</samp>](https://github.com/vitest-dev/vitest/commit/45dfc95ae) - Add initializing explorer logic - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5941](https://github.com/vitest-dev/vitest/issues/5941) [<samp>(c31c4)</samp>](https://github.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://github.com/userquin) and **Anjorin Damilare** in [https://github.com/vitest-dev/vitest/issues/5948](https://github.com/vitest-dev/vitest/issues/5948) [<samp>(7ec29)</samp>](https://github.com/vitest-dev/vitest/commit/7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5906](https://github.com/vitest-dev/vitest/issues/5906) [<samp>(e6020)</samp>](https://github.com/vitest-dev/vitest/commit/e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5678](https://github.com/vitest-dev/vitest/issues/5678) [<samp>(34a80)</samp>](https://github.com/vitest-dev/vitest/commit/34a80b392) - Repeatable `--exclude` option - by [@​fregante](https://github.com/fregante) in [https://github.com/vitest-dev/vitest/issues/5782](https://github.com/vitest-dev/vitest/issues/5782) [<samp>(d6700)</samp>](https://github.com/vitest-dev/vitest/commit/d6700bbd8) - Remove browser.fileParallelism - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5790](https://github.com/vitest-dev/vitest/issues/5790) [<samp>(b881e)</samp>](https://github.com/vitest-dev/vitest/commit/b881e88b2) - Install UI icons - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](https://github.com/vitest-dev/vitest/commit/b84f1721d) - Remove process.exit if workspace project failed to be created - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5804](https://github.com/vitest-dev/vitest/issues/5804) [<samp>(a820e)</samp>](https://github.com/vitest-dev/vitest/commit/a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@​pedro00dk](https://github.com/pedro00dk) in [https://github.com/vitest-dev/vitest/issues/5875](https://github.com/vitest-dev/vitest/issues/5875) [<samp>(04107)</samp>](https://github.com/vitest-dev/vitest/commit/041076e7c) - ToJSON recursive error serialization - by [@​eddienubes](https://github.com/eddienubes) in [https://github.com/vitest-dev/vitest/issues/5848](https://github.com/vitest-dev/vitest/issues/5848) and [https://github.com/vitest-dev/vitest/issues/5884](https://github.com/vitest-dev/vitest/issues/5884) [<samp>(8d55d)</samp>](https://github.com/vitest-dev/vitest/commit/8d55d6bd4) - Print error properties only in verbose reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5917](https://github.com/vitest-dev/vitest/issues/5917) [<samp>(2bd8d)</samp>](https://github.com/vitest-dev/vitest/commit/2bd8d9d6f) - Use TTY reporter when running in Deno - by [@​marvinhagemeister](https://github.com/marvinhagemeister) in [https://github.com/vitest-dev/vitest/issues/5972](https://github.com/vitest-dev/vitest/issues/5972) [<samp>(e0f45)</samp>](https://github.com/vitest-dev/vitest/commit/e0f45cb57) - Don't override uppercase - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](https://github.com/vitest-dev/vitest/commit/caef40a0b) - Clear screen and scrollback on iTerm2 - by [@​kxalex](https://github.com/kxalex) in [https://github.com/vitest-dev/vitest/issues/5978](https://github.com/vitest-dev/vitest/issues/5978) [<samp>(d7f23)</samp>](https://github.com/vitest-dev/vitest/commit/d7f23d08c) - Include pretty-format in [@​vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](https://github.com/vitest-dev/vitest/commit/42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4409](https://github.com/vitest-dev/vitest/issues/4409) [<samp>(8f65a)</samp>](https://github.com/vitest-dev/vitest/commit/8f65ae906) - **api**: - Correct `project.provide` type - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5959](https://github.com/vitest-dev/vitest/issues/5959) [<samp>(0eda9)</samp>](https://github.com/vitest-dev/vitest/commit/0eda99de9) - Don't call process.exit manually - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5926](https://github.com/vitest-dev/vitest/issues/5926) [<samp>(e9b63)</samp>](https://github.com/vitest-dev/vitest/commit/e9b638d40) - **browser**: - Display UI - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](https://github.com/vitest-dev/vitest/commit/d41e46a81) - Browser actions icons colors - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5816](https://github.com/vitest-dev/vitest/issues/5816) [<samp>(f9d9b)</samp>](https://github.com/vitest-dev/vitest/commit/f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5821](https://github.com/vitest-dev/vitest/issues/5821) [<samp>(5ebb3)</samp>](https://github.com/vitest-dev/vitest/commit/5ebb3abf5) - Don't get stuck after the manual page refresh - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](https://github.com/vitest-dev/vitest/commit/2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5823](https://github.com/vitest-dev/vitest/issues/5823) [<samp>(34a31)</samp>](https://github.com/vitest-dev/vitest/commit/34a310da1) - Always clean up iframes on rerun - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5827](https://github.com/vitest-dev/vitest/issues/5827) [<samp>(087fa)</samp>](https://github.com/vitest-dev/vitest/commit/087fa87c3) - Support [@​testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](https://github.com/vitest-dev/vitest/commit/76b82e5b9) - Print correct transformed module graph - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5833](https://github.com/vitest-dev/vitest/issues/5833) [<samp>(a7581)</samp>](https://github.com/vitest-dev/vitest/commit/a75815756) - Use `preview` provider when running in StackBlitz - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5836](https://github.com/vitest-dev/vitest/issues/5836) [<samp>(76e13)</samp>](https://github.com/vitest-dev/vitest/commit/76e13587c) - Specify entries for correct deps optimization - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5839](https://github.com/vitest-dev/vitest/issues/5839) [<samp>(c79b3)</samp>](https://github.com/vitest-dev/vitest/commit/c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5841](https://github.com/vitest-dev/vitest/issues/5841) [<samp>(caaaf)</samp>](https://github.com/vitest-dev/vitest/commit/caaafd903) - Don't optimize Vitest dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5843](https://github.com/vitest-dev/vitest/issues/5843) [<samp>(f15b4)</samp>](https://github.com/vitest-dev/vitest/commit/f15b4e99d) - Set server.open to false and move error handling after init - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5845](https://github.com/vitest-dev/vitest/issues/5845) [<samp>(47003)</samp>](https://github.com/vitest-dev/vitest/commit/470036794) - Show correct prepare time - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5852](https://github.com/vitest-dev/vitest/issues/5852) [<samp>(52d54)</samp>](https://github.com/vitest-dev/vitest/commit/52d545bf9) - Resolve `coverage.reporter` from string values - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5920](https://github.com/vitest-dev/vitest/issues/5920) [<samp>(f33da)</samp>](https://github.com/vitest-dev/vitest/commit/f33dabbef) - Correctly update inline snapshot if changed - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5925](https://github.com/vitest-dev/vitest/issues/5925) [<samp>(2380c)</samp>](https://github.com/vitest-dev/vitest/commit/2380cb95e) - Remove "util" warning - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5935](https://github.com/vitest-dev/vitest/issues/5935) [<samp>(48f28)</samp>](https://github.com/vitest-dev/vitest/commit/48f28f731) - Remove hacky retry - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5971](https://github.com/vitest-dev/vitest/issues/5971) [<samp>(2a2c9)</samp>](https://github.com/vitest-dev/vitest/commit/2a2c9085a) - Make userEvent more stable when running in parallel - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5974](https://github.com/vitest-dev/vitest/issues/5974) [<samp>(14a21)</samp>](https://github.com/vitest-dev/vitest/commit/14a217d53) - Print screenshot path alongside the test error message - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5992](https://github.com/vitest-dev/vitest/issues/5992) [<samp>(15289)</samp>](https://github.com/vitest-dev/vitest/commit/152891b3d) - Print correct stack trace in source files - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6003](https://github.com/vitest-dev/vitest/issues/6003) [<samp>(62aa7)</samp>](https://github.com/vitest-dev/vitest/commit/62aa72081) - Correctly mock optimized cjs dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6035](https://github.com/vitest-dev/vitest/issues/6035) [<samp>(057b4)</samp>](https://github.com/vitest-dev/vitest/commit/057b4f34b) - Support shadow root and svg elements - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6036](https://github.com/vitest-dev/vitest/issues/6036) [<samp>(2e3c8)</samp>](https://github.com/vitest-dev/vitest/commit/2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5731](https://github.com/vitest-dev/vitest/issues/5731) [<samp>(c469c)</samp>](https://github.com/vitest-dev/vitest/commit/c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5818](https://github.com/vitest-dev/vitest/issues/5818) [<samp>(7afb3)</samp>](https://github.com/vitest-dev/vitest/commit/7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5954](https://github.com/vitest-dev/vitest/issues/5954) [<samp>(70805)</samp>](https://github.com/vitest-dev/vitest/commit/708051319) - Exclude bench files from coverage - by [@​kouak](https://github.com/kouak) in [https://github.com/vitest-dev/vitest/issues/5983](https://github.com/vitest-dev/vitest/issues/5983) [<samp>(429e1)</samp>](https://github.com/vitest-dev/vitest/commit/429e1a7f8) - Vite to ignore dynamic import of provider - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5998](https://github.com/vitest-dev/vitest/issues/5998) [<samp>(6d884)</samp>](https://github.com/vitest-dev/vitest/commit/6d8848e86) - Istanbul to support import attributes - by [@​Gravitonic](https://github.com/Gravitonic) in [https://github.com/vitest-dev/vitest/issues/6006](https://github.com/vitest-dev/vitest/issues/6006) [<samp>(2898a)</samp>](https://github.com/vitest-dev/vitest/commit/2898a525d) - Support overriding `exclude` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5997](https://github.com/vitest-dev/vitest/issues/5997) [<samp>(169bc)</samp>](https://github.com/vitest-dev/vitest/commit/169bc1fde) - Remove work-around for implicit `else` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6014](https://github.com/vitest-dev/vitest/issues/6014) [<samp>(368c1)</samp>](https://github.com/vitest-dev/vitest/commit/368c13728) - **deps**: - Update dependency [@​testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in [https://github.com/vitest-dev/vitest/issues/5866](https://github.com/vitest-dev/vitest/issues/5866) [<samp>(e9745)</samp>](https://github.com/vitest-dev/vitest/commit/e9745997e) - Update vulnerable `test-exclude` to v7 - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5867](https://github.com/vitest-dev/vitest/issues/5867) [<samp>(0a715)</samp>](https://github.com/vitest-dev/vitest/commit/0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5692](https://github.com/vitest-dev/vitest/issues/5692) [<samp>(1532c)</samp>](https://github.com/vitest-dev/vitest/commit/1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5840](https://github.com/vitest-dev/vitest/issues/5840) [<samp>(a60a1)</samp>](https://github.com/vitest-dev/vitest/commit/a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@​pengooseDev](https://github.com/pengooseDev) in [https://github.com/vitest-dev/vitest/issues/5737](https://github.com/vitest-dev/vitest/issues/5737) [<samp>(a20e7)</samp>](https://github.com/vitest-dev/vitest/commit/a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@​pengooseDev](https://github.com/pengooseDev) in [https://github.com/vitest-dev/vitest/issues/5806](https://github.com/vitest-dev/vitest/issues/5806) [<samp>(9ac8f)</samp>](https://github.com/vitest-dev/vitest/commit/9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5894](https://github.com/vitest-dev/vitest/issues/5894) [<samp>(88006)</samp>](https://github.com/vitest-dev/vitest/commit/8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](https://github.com/vitest-dev/vitest/commit/4776eca1d) - **types**: - Mark pool options as not available in project config - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5934](https://github.com/vitest-dev/vitest/issues/5934) [<samp>(486fd)</samp>](https://github.com/vitest-dev/vitest/commit/486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5792](https://github.com/vitest-dev/vitest/issues/5792) [<samp>(48c50)</samp>](https://github.com/vitest-dev/vitest/commit/48c502fbe) - Update running todo tests inside todo suites (each) - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5939](https://github.com/vitest-dev/vitest/issues/5939) [<samp>(63ae1)</samp>](https://github.com/vitest-dev/vitest/commit/63ae10bd9) - `FileDetails` title status icon not being updated - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5942](https://github.com/vitest-dev/vitest/issues/5942) [<samp>(e9ddf)</samp>](https://github.com/vitest-dev/vitest/commit/e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5863](https://github.com/vitest-dev/vitest/issues/5863) [<samp>(7cbd9)</samp>](https://github.com/vitest-dev/vitest/commit/7cbd943c7) - **utils**: - Produce valid snapshot names - by [@​dubzzz](https://github.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5724](https://github.com/vitest-dev/vitest/issues/5724) [<samp>(1ec61)</samp>](https://github.com/vitest-dev/vitest/commit/1ec61ceee) - Fix color util maximum call stack error - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5733](https://github.com/vitest-dev/vitest/issues/5733) [<samp>(a4ec5)</samp>](https://github.com/vitest-dev/vitest/commit/a4ec58319) - Package exports - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5847](https://github.com/vitest-dev/vitest/issues/5847) [<samp>(07876)</samp>](https://github.com/vitest-dev/vitest/commit/07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6017](https://github.com/vitest-dev/vitest/issues/6017) [<samp>(d87be)</samp>](https://github.com/vitest-dev/vitest/commit/d87bef961) - **vitest**: - Expose `provide` to the public API - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5897](https://github.com/vitest-dev/vitest/issues/5897) [<samp>(66e64)</samp>](https://github.com/vitest-dev/vitest/commit/66e648ff8) - Cache fs code only for forks pool - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5909](https://github.com/vitest-dev/vitest/issues/5909) [<samp>(e30d9)</samp>](https://github.com/vitest-dev/vitest/commit/e30d9b4d5) - Allow testing unandled rejection/exception - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6016](https://github.com/vitest-dev/vitest/issues/6016) [<samp>(c8d56)</samp>](https://github.com/vitest-dev/vitest/commit/c8d56fe5f) - Show all failed tests when rerunning a test - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6022](https://github.com/vitest-dev/vitest/issues/6022) [<samp>(91ba6)</samp>](https://github.com/vitest-dev/vitest/commit/91ba6f95e) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/6b29f3ddc86060cf3265959d4ae32e90b186cb92...v2.0.0) </details> <details> <summary>eratio08/vitest-mock-extended (vitest-mock-extended)</summary> ### [`v2.0.0`](https://github.com/eratio08/vitest-mock-extended/releases/tag/v2.0.0) [Compare Source](https://github.com/eratio08/vitest-mock-extended/compare/v1.3.2...v2.0.0) ##### chore - Adjust package version to 2.0 ([b867078](https://github.com/eratio08/vitest-mock-extended/commit/b86707812b123745086ed29bea6ca92c26ad850b)) ##### BREAKING CHANGES - Require at least vitest 2.0 as peer dependency ### [`v1.3.2`](https://github.com/eratio08/vitest-mock-extended/releases/tag/v1.3.2) [Compare Source](https://github.com/eratio08/vitest-mock-extended/compare/v1.3.1...v1.3.2) ##### Bug Fixes - Resolve issues with Vitest 2.0 Mock Type changes ([b1d2b89](https://github.com/eratio08/vitest-mock-extended/commit/b1d2b893ddce4cb9e3ed3ecc10ed80f3439beed7)) - `vitest-mock-extended` now requires `vitest` `2.0.0` </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/JabRef/JabRefOnline). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tobias Diez <[email protected]>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.14.15` -> `22.2.0`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.15/22.2.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.14.15/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.14.15/22.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [glob](https://github.com/isaacs/node-glob) | [`^10.4.1` -> `^11.0.0`](https://renovatebot.com/diffs/npm/glob/10.4.5/11.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/glob/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/glob/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/glob/10.4.5/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/glob/10.4.5/11.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://github.com/vitest-dev/vitest) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`^1.6.0` -> `^2.0.0`](https://renovatebot.com/diffs/npm/vitest/1.6.0/2.0.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [why-is-node-running](https://github.com/mafintosh/why-is-node-running) | [`^2.2.2` -> `^3.0.0`](https://renovatebot.com/diffs/npm/why-is-node-running/2.3.0/3.2.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/why-is-node-running/3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/why-is-node-running/3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/why-is-node-running/2.3.0/3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/why-is-node-running/2.3.0/3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>isaacs/node-glob (glob)</summary> ### [`v11.0.0`](https://github.com/isaacs/node-glob/compare/v10.4.5...v11.0.0) [Compare Source](https://github.com/isaacs/node-glob/compare/v10.4.5...v11.0.0) </details> <details> <summary>vitest-dev/vitest (vitest)</summary> ### [`v2.0.5`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6149](https://github.com/vitest-dev/vitest/issues/6149) [<samp>(13d85)</samp>](https://github.com/vitest-dev/vitest/commit/13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6191](https://github.com/vitest-dev/vitest/issues/6191) [<samp>(29176)</samp>](https://github.com/vitest-dev/vitest/commit/291766d7) - `testNamePattern` adds leading space - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6186](https://github.com/vitest-dev/vitest/issues/6186) [<samp>(073a5)</samp>](https://github.com/vitest-dev/vitest/commit/073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6192](https://github.com/vitest-dev/vitest/issues/6192) [<samp>(e6fbc)</samp>](https://github.com/vitest-dev/vitest/commit/e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6088](https://github.com/vitest-dev/vitest/issues/6088) [<samp>(883f3)</samp>](https://github.com/vitest-dev/vitest/commit/883f3482) - Correctly import optimized module in vi.importActual - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6219](https://github.com/vitest-dev/vitest/issues/6219) [<samp>(804ff)</samp>](https://github.com/vitest-dev/vitest/commit/804ff2fd) - Passing options to hover/unhover - by [@​MNeverOff](https://github.com/MNeverOff) in [https://github.com/vitest-dev/vitest/issues/6175](https://github.com/vitest-dev/vitest/issues/6175) [<samp>(d4c00)</samp>](https://github.com/vitest-dev/vitest/commit/d4c005bc) - Improve unique CSS selector generation - by [@​zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in [https://github.com/vitest-dev/vitest/issues/6243](https://github.com/vitest-dev/vitest/issues/6243) [<samp>(e7acd)</samp>](https://github.com/vitest-dev/vitest/commit/e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](https://github.com/vitest-dev/vitest/commit/93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6198](https://github.com/vitest-dev/vitest/issues/6198) [<samp>(8cd82)</samp>](https://github.com/vitest-dev/vitest/commit/8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6204](https://github.com/vitest-dev/vitest/issues/6204) [<samp>(a48be)</samp>](https://github.com/vitest-dev/vitest/commit/a48be6ff) - **web-worker**: - Expose globals on self - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6170](https://github.com/vitest-dev/vitest/issues/6170) [<samp>(12bb5)</samp>](https://github.com/vitest-dev/vitest/commit/12bb567e) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5) ### [`v2.0.4`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@​hahanein](https://github.com/hahanein) in [https://github.com/vitest-dev/vitest/issues/5105](https://github.com/vitest-dev/vitest/issues/5105) [<samp>(38269)</samp>](https://github.com/vitest-dev/vitest/commit/38269415) - Resolve assets imported with `require` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6159](https://github.com/vitest-dev/vitest/issues/6159) [<samp>(807a2)</samp>](https://github.com/vitest-dev/vitest/commit/807a2cbc) - **browser**: - Don't panic if [@​vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6135](https://github.com/vitest-dev/vitest/issues/6135) [<samp>(ccfcd)</samp>](https://github.com/vitest-dev/vitest/commit/ccfcd488) - Set global filepath - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6190](https://github.com/vitest-dev/vitest/issues/6190) [<samp>(0d0b4)</samp>](https://github.com/vitest-dev/vitest/commit/0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6113](https://github.com/vitest-dev/vitest/issues/6113) [<samp>(2d620)</samp>](https://github.com/vitest-dev/vitest/commit/2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@​thor-juhasz](https://github.com/thor-juhasz) and [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6172](https://github.com/vitest-dev/vitest/issues/6172) [<samp>(02e3f)</samp>](https://github.com/vitest-dev/vitest/commit/02e3f003) - Consistent type-only file handling - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6183](https://github.com/vitest-dev/vitest/issues/6183) [<samp>(90576)</samp>](https://github.com/vitest-dev/vitest/commit/90576148) - Ignore `*.cts` files - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6189](https://github.com/vitest-dev/vitest/issues/6189) [<samp>(5da45)</samp>](https://github.com/vitest-dev/vitest/commit/5da45db1) - Add `thresholds.<glob>.100` option - by [@​thor-juhasz](https://github.com/thor-juhasz) and [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6174](https://github.com/vitest-dev/vitest/issues/6174) [<samp>(f6845)</samp>](https://github.com/vitest-dev/vitest/commit/f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6181](https://github.com/vitest-dev/vitest/issues/6181) [<samp>(7a75b)</samp>](https://github.com/vitest-dev/vitest/commit/7a75bd4c) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4) ### [`v2.0.3`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6106](https://github.com/vitest-dev/vitest/issues/6106) [<samp>(840e0)</samp>](https://github.com/vitest-dev/vitest/commit/840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6110](https://github.com/vitest-dev/vitest/issues/6110) [<samp>(f8519)</samp>](https://github.com/vitest-dev/vitest/commit/f851982e) - **browser**: - Don't import from "vite" - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](https://github.com/vitest-dev/vitest/commit/35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6108](https://github.com/vitest-dev/vitest/issues/6108) [<samp>(f44cc)</samp>](https://github.com/vitest-dev/vitest/commit/f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6086](https://github.com/vitest-dev/vitest/issues/6086) [<samp>(e9f9a)</samp>](https://github.com/vitest-dev/vitest/commit/e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@​syi0808](https://github.com/syi0808) in [https://github.com/vitest-dev/vitest/issues/6109](https://github.com/vitest-dev/vitest/issues/6109) [<samp>(93ebd)</samp>](https://github.com/vitest-dev/vitest/commit/93ebdefc) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3) ### [`v2.0.2`](https://github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) ### [`v2.0.1`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) [Compare Source](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6054](https://github.com/vitest-dev/vitest/issues/6054) [<samp>(4b03e)</samp>](https://github.com/vitest-dev/vitest/commit/4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6053](https://github.com/vitest-dev/vitest/issues/6053) [<samp>(f94ed)</samp>](https://github.com/vitest-dev/vitest/commit/f94ede02) - **vitest**: Print only running files, not every file - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6052](https://github.com/vitest-dev/vitest/issues/6052) [<samp>(4d559)</samp>](https://github.com/vitest-dev/vitest/commit/4d5597df) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1) ### [`v2.0.0`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.0) [Compare Source](https://github.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://github.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/4784](https://github.com/vitest-dev/vitest/pull/4784) [<samp>(a0c1d37)</samp>](https://github.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6) - Remove `--segfault-retry` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5514](https://github.com/vitest-dev/vitest/issues/5514) [<samp>(ed60e)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5609](https://github.com/vitest-dev/vitest/issues/5609) [<samp>(1277d)</samp>](https://github.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://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5543](https://github.com/vitest-dev/vitest/issues/5543) [<samp>(31994)</samp>](https://github.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://github.com/vitest-dev/vitest/issues/5423) for more details. - Add correct location and snapshot fields in json reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5434](https://github.com/vitest-dev/vitest/issues/5434) [<samp>(bcccc)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5135](https://github.com/vitest-dev/vitest/issues/5135) [<samp>(73646)</samp>](https://github.com/vitest-dev/vitest/commit/73646b638) - Remove watchExclude - by [@​patak-dev](https://github.com/patak-dev) in [https://github.com/vitest-dev/vitest/issues/5177](https://github.com/vitest-dev/vitest/issues/5177) [<samp>(d7371)</samp>](https://github.com/vitest-dev/vitest/commit/d7371eae3) - Change default `pool` to `'forks'` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5047](https://github.com/vitest-dev/vitest/issues/5047) [<samp>(7f8f9)</samp>](https://github.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://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5736](https://github.com/vitest-dev/vitest/issues/5736) [<samp>(b7438)</samp>](https://github.com/vitest-dev/vitest/commit/b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5749](https://github.com/vitest-dev/vitest/issues/5749) [<samp>(5f710)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5726](https://github.com/vitest-dev/vitest/issues/5726) [<samp>(ddb09)</samp>](https://github.com/vitest-dev/vitest/commit/ddb09eb12) - Don't exit process if config failed - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5715](https://github.com/vitest-dev/vitest/issues/5715) [<samp>(f232f)</samp>](https://github.com/vitest-dev/vitest/commit/f232fdd61) - Add meta to `json` output - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5802](https://github.com/vitest-dev/vitest/issues/5802) [<samp>(dd754)</samp>](https://github.com/vitest-dev/vitest/commit/dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5842](https://github.com/vitest-dev/vitest/issues/5842) [<samp>(49f34)</samp>](https://github.com/vitest-dev/vitest/commit/49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6013](https://github.com/vitest-dev/vitest/issues/6013) [<samp>(583dd)</samp>](https://github.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://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5435](https://github.com/vitest-dev/vitest/issues/5435) [<samp>(dbbbe)</samp>](https://github.com/vitest-dev/vitest/commit/dbbbe4304) - Support concurrent suites - by **[@​hi-ogawa](https://github.com/hi-ogawa)** in [https://github.com/vitest-dev/vitest/pull/5491](https://github.com/vitest-dev/vitest/pull/5491) [<samp>(222ce44)</samp>](https://github.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa) ##### 🚀 Features - Pretty print diffs coming from cause - by [@​dubzzz](https://github.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5660](https://github.com/vitest-dev/vitest/issues/5660) [<samp>(6faf8)</samp>](https://github.com/vitest-dev/vitest/commit/6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5690](https://github.com/vitest-dev/vitest/issues/5690) [<samp>(a99a1)</samp>](https://github.com/vitest-dev/vitest/commit/a99a14c1c) - Remove deprecated options - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5696](https://github.com/vitest-dev/vitest/issues/5696) [<samp>(5c308)</samp>](https://github.com/vitest-dev/vitest/commit/5c308edc6) - Add blob reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5663](https://github.com/vitest-dev/vitest/issues/5663) [<samp>(e2053)</samp>](https://github.com/vitest-dev/vitest/commit/e20538a36) - Add expect.poll utility - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5708](https://github.com/vitest-dev/vitest/issues/5708) [<samp>(e2e0f)</samp>](https://github.com/vitest-dev/vitest/commit/e2e0ff46a) - Add browser.ui option - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5771](https://github.com/vitest-dev/vitest/issues/5771) [<samp>(a5033)</samp>](https://github.com/vitest-dev/vitest/commit/a50330eea) - Add median to `--output-json` - by [@​Joristdh](https://github.com/Joristdh) in [https://github.com/vitest-dev/vitest/issues/5745](https://github.com/vitest-dev/vitest/issues/5745) [<samp>(0766b)</samp>](https://github.com/vitest-dev/vitest/commit/0766b7f72) - Allow augmenting config.test.env - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5784](https://github.com/vitest-dev/vitest/issues/5784) [<samp>(b2469)</samp>](https://github.com/vitest-dev/vitest/commit/b24691efd) - Implement module mocking in browser mode - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5765](https://github.com/vitest-dev/vitest/issues/5765) [<samp>(7b2f6)</samp>](https://github.com/vitest-dev/vitest/commit/7b2f64cfa) - Allow configuring expect options in the config - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5729](https://github.com/vitest-dev/vitest/issues/5729) [<samp>(fc53f)</samp>](https://github.com/vitest-dev/vitest/commit/fc53f5634) - Add an option to print console stack trace - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5720](https://github.com/vitest-dev/vitest/issues/5720) [<samp>(e4fe6)</samp>](https://github.com/vitest-dev/vitest/commit/e4fe6f51a) - Add browser frame to UI - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5808](https://github.com/vitest-dev/vitest/issues/5808) [<samp>(3796d)</samp>](https://github.com/vitest-dev/vitest/commit/3796dd7e0) - Image type add bmp - by **btea** in [https://github.com/vitest-dev/vitest/issues/5921](https://github.com/vitest-dev/vitest/issues/5921) [<samp>(98f9b)</samp>](https://github.com/vitest-dev/vitest/commit/98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5993](https://github.com/vitest-dev/vitest/issues/5993) [<samp>(be323)</samp>](https://github.com/vitest-dev/vitest/commit/be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](https://github.com/vitest-dev/vitest/commit/f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5097](https://github.com/vitest-dev/vitest/issues/5097) [<samp>(aa431)</samp>](https://github.com/vitest-dev/vitest/commit/aa431f4db) - Do not reload the page during watch mode - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5810](https://github.com/vitest-dev/vitest/issues/5810) [<samp>(e5b9a)</samp>](https://github.com/vitest-dev/vitest/commit/e5b9a0be4) - Support changing the viewport - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5811](https://github.com/vitest-dev/vitest/issues/5811) [<samp>(71851)</samp>](https://github.com/vitest-dev/vitest/commit/718512d80) - Add browser iframe mouse interaction - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5815](https://github.com/vitest-dev/vitest/issues/5815) [<samp>(f29b9)</samp>](https://github.com/vitest-dev/vitest/commit/f29b9d408) - Support `click` event - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5777](https://github.com/vitest-dev/vitest/issues/5777) [<samp>(839c3)</samp>](https://github.com/vitest-dev/vitest/commit/839c39f06) - Rename none provider to preview, make it default - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5826](https://github.com/vitest-dev/vitest/issues/5826) [<samp>(18310)</samp>](https://github.com/vitest-dev/vitest/commit/1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5853](https://github.com/vitest-dev/vitest/issues/5853) [<samp>(81c42)</samp>](https://github.com/vitest-dev/vitest/commit/81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5882](https://github.com/vitest-dev/vitest/issues/5882) [<samp>(4dbea)</samp>](https://github.com/vitest-dev/vitest/commit/4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5910](https://github.com/vitest-dev/vitest/issues/5910) [<samp>(3a96a)</samp>](https://github.com/vitest-dev/vitest/commit/3a96a3d0e) - Expose CDP in the browser - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5938](https://github.com/vitest-dev/vitest/issues/5938) [<samp>(bec43)</samp>](https://github.com/vitest-dev/vitest/commit/bec434cb6) - Add "init" command for browser tests - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5960](https://github.com/vitest-dev/vitest/issues/5960) [<samp>(49e97)</samp>](https://github.com/vitest-dev/vitest/commit/49e973cb9) - Add an option to take screenshots if the browser test fails - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5975](https://github.com/vitest-dev/vitest/issues/5975) [<samp>(154cb)</samp>](https://github.com/vitest-dev/vitest/commit/154cb22de) - Add `tripleClick` to interactive api - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5987](https://github.com/vitest-dev/vitest/issues/5987) [<samp>(200a4)</samp>](https://github.com/vitest-dev/vitest/commit/200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@​userquin](https://github.com/userquin) and [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5984](https://github.com/vitest-dev/vitest/issues/5984) [<samp>(ff978)</samp>](https://github.com/vitest-dev/vitest/commit/ff978e58d) - **config**: - Allow percentage value for workers option - by [@​syi0808](https://github.com/syi0808) in [https://github.com/vitest-dev/vitest/issues/5982](https://github.com/vitest-dev/vitest/issues/5982) [<samp>(b1a27)</samp>](https://github.com/vitest-dev/vitest/commit/b1a27d404) - **runner**: - Implement `test.for` - by [@​hi-ogawa](https://github.com/hi-ogawa) and [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5861](https://github.com/vitest-dev/vitest/issues/5861) [<samp>(c2380)</samp>](https://github.com/vitest-dev/vitest/commit/c238072fd) - **spy**: - Collect mock.contexts - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5955](https://github.com/vitest-dev/vitest/issues/5955) [<samp>(3b31a)</samp>](https://github.com/vitest-dev/vitest/commit/3b31a56d5) - **ui**: - Render tests in a tree - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5807](https://github.com/vitest-dev/vitest/issues/5807) [<samp>(7900f)</samp>](https://github.com/vitest-dev/vitest/commit/7900f9f89) - Load module graph on tab selection - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5844](https://github.com/vitest-dev/vitest/issues/5844) [<samp>(b117e)</samp>](https://github.com/vitest-dev/vitest/commit/b117e8756) - Replace navigation tree with test explorer - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5907](https://github.com/vitest-dev/vitest/issues/5907) [<samp>(45dfc)</samp>](https://github.com/vitest-dev/vitest/commit/45dfc95ae) - Add initializing explorer logic - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5941](https://github.com/vitest-dev/vitest/issues/5941) [<samp>(c31c4)</samp>](https://github.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://github.com/userquin) and **Anjorin Damilare** in [https://github.com/vitest-dev/vitest/issues/5948](https://github.com/vitest-dev/vitest/issues/5948) [<samp>(7ec29)</samp>](https://github.com/vitest-dev/vitest/commit/7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5906](https://github.com/vitest-dev/vitest/issues/5906) [<samp>(e6020)</samp>](https://github.com/vitest-dev/vitest/commit/e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5678](https://github.com/vitest-dev/vitest/issues/5678) [<samp>(34a80)</samp>](https://github.com/vitest-dev/vitest/commit/34a80b392) - Repeatable `--exclude` option - by [@​fregante](https://github.com/fregante) in [https://github.com/vitest-dev/vitest/issues/5782](https://github.com/vitest-dev/vitest/issues/5782) [<samp>(d6700)</samp>](https://github.com/vitest-dev/vitest/commit/d6700bbd8) - Remove browser.fileParallelism - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5790](https://github.com/vitest-dev/vitest/issues/5790) [<samp>(b881e)</samp>](https://github.com/vitest-dev/vitest/commit/b881e88b2) - Install UI icons - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](https://github.com/vitest-dev/vitest/commit/b84f1721d) - Remove process.exit if workspace project failed to be created - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5804](https://github.com/vitest-dev/vitest/issues/5804) [<samp>(a820e)</samp>](https://github.com/vitest-dev/vitest/commit/a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@​pedro00dk](https://github.com/pedro00dk) in [https://github.com/vitest-dev/vitest/issues/5875](https://github.com/vitest-dev/vitest/issues/5875) [<samp>(04107)</samp>](https://github.com/vitest-dev/vitest/commit/041076e7c) - ToJSON recursive error serialization - by [@​eddienubes](https://github.com/eddienubes) in [https://github.com/vitest-dev/vitest/issues/5848](https://github.com/vitest-dev/vitest/issues/5848) and [https://github.com/vitest-dev/vitest/issues/5884](https://github.com/vitest-dev/vitest/issues/5884) [<samp>(8d55d)</samp>](https://github.com/vitest-dev/vitest/commit/8d55d6bd4) - Print error properties only in verbose reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5917](https://github.com/vitest-dev/vitest/issues/5917) [<samp>(2bd8d)</samp>](https://github.com/vitest-dev/vitest/commit/2bd8d9d6f) - Use TTY reporter when running in Deno - by [@​marvinhagemeister](https://github.com/marvinhagemeister) in [https://github.com/vitest-dev/vitest/issues/5972](https://github.com/vitest-dev/vitest/issues/5972) [<samp>(e0f45)</samp>](https://github.com/vitest-dev/vitest/commit/e0f45cb57) - Don't override uppercase - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](https://github.com/vitest-dev/vitest/commit/caef40a0b) - Clear screen and scrollback on iTerm2 - by [@​kxalex](https://github.com/kxalex) in [https://github.com/vitest-dev/vitest/issues/5978](https://github.com/vitest-dev/vitest/issues/5978) [<samp>(d7f23)</samp>](https://github.com/vitest-dev/vitest/commit/d7f23d08c) - Include pretty-format in [@​vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](https://github.com/vitest-dev/vitest/commit/42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4409](https://github.com/vitest-dev/vitest/issues/4409) [<samp>(8f65a)</samp>](https://github.com/vitest-dev/vitest/commit/8f65ae906) - **api**: - Correct `project.provide` type - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5959](https://github.com/vitest-dev/vitest/issues/5959) [<samp>(0eda9)</samp>](https://github.com/vitest-dev/vitest/commit/0eda99de9) - Don't call process.exit manually - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5926](https://github.com/vitest-dev/vitest/issues/5926) [<samp>(e9b63)</samp>](https://github.com/vitest-dev/vitest/commit/e9b638d40) - **browser**: - Display UI - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](https://github.com/vitest-dev/vitest/commit/d41e46a81) - Browser actions icons colors - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5816](https://github.com/vitest-dev/vitest/issues/5816) [<samp>(f9d9b)</samp>](https://github.com/vitest-dev/vitest/commit/f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5821](https://github.com/vitest-dev/vitest/issues/5821) [<samp>(5ebb3)</samp>](https://github.com/vitest-dev/vitest/commit/5ebb3abf5) - Don't get stuck after the manual page refresh - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](https://github.com/vitest-dev/vitest/commit/2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5823](https://github.com/vitest-dev/vitest/issues/5823) [<samp>(34a31)</samp>](https://github.com/vitest-dev/vitest/commit/34a310da1) - Always clean up iframes on rerun - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5827](https://github.com/vitest-dev/vitest/issues/5827) [<samp>(087fa)</samp>](https://github.com/vitest-dev/vitest/commit/087fa87c3) - Support [@​testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](https://github.com/vitest-dev/vitest/commit/76b82e5b9) - Print correct transformed module graph - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5833](https://github.com/vitest-dev/vitest/issues/5833) [<samp>(a7581)</samp>](https://github.com/vitest-dev/vitest/commit/a75815756) - Use `preview` provider when running in StackBlitz - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5836](https://github.com/vitest-dev/vitest/issues/5836) [<samp>(76e13)</samp>](https://github.com/vitest-dev/vitest/commit/76e13587c) - Specify entries for correct deps optimization - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5839](https://github.com/vitest-dev/vitest/issues/5839) [<samp>(c79b3)</samp>](https://github.com/vitest-dev/vitest/commit/c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5841](https://github.com/vitest-dev/vitest/issues/5841) [<samp>(caaaf)</samp>](https://github.com/vitest-dev/vitest/commit/caaafd903) - Don't optimize Vitest dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5843](https://github.com/vitest-dev/vitest/issues/5843) [<samp>(f15b4)</samp>](https://github.com/vitest-dev/vitest/commit/f15b4e99d) - Set server.open to false and move error handling after init - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5845](https://github.com/vitest-dev/vitest/issues/5845) [<samp>(47003)</samp>](https://github.com/vitest-dev/vitest/commit/470036794) - Show correct prepare time - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5852](https://github.com/vitest-dev/vitest/issues/5852) [<samp>(52d54)</samp>](https://github.com/vitest-dev/vitest/commit/52d545bf9) - Resolve `coverage.reporter` from string values - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5920](https://github.com/vitest-dev/vitest/issues/5920) [<samp>(f33da)</samp>](https://github.com/vitest-dev/vitest/commit/f33dabbef) - Correctly update inline snapshot if changed - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5925](https://github.com/vitest-dev/vitest/issues/5925) [<samp>(2380c)</samp>](https://github.com/vitest-dev/vitest/commit/2380cb95e) - Remove "util" warning - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5935](https://github.com/vitest-dev/vitest/issues/5935) [<samp>(48f28)</samp>](https://github.com/vitest-dev/vitest/commit/48f28f731) - Remove hacky retry - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5971](https://github.com/vitest-dev/vitest/issues/5971) [<samp>(2a2c9)</samp>](https://github.com/vitest-dev/vitest/commit/2a2c9085a) - Make userEvent more stable when running in parallel - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5974](https://github.com/vitest-dev/vitest/issues/5974) [<samp>(14a21)</samp>](https://github.com/vitest-dev/vitest/commit/14a217d53) - Print screenshot path alongside the test error message - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5992](https://github.com/vitest-dev/vitest/issues/5992) [<samp>(15289)</samp>](https://github.com/vitest-dev/vitest/commit/152891b3d) - Print correct stack trace in source files - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6003](https://github.com/vitest-dev/vitest/issues/6003) [<samp>(62aa7)</samp>](https://github.com/vitest-dev/vitest/commit/62aa72081) - Correctly mock optimized cjs dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6035](https://github.com/vitest-dev/vitest/issues/6035) [<samp>(057b4)</samp>](https://github.com/vitest-dev/vitest/commit/057b4f34b) - Support shadow root and svg elements - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6036](https://github.com/vitest-dev/vitest/issues/6036) [<samp>(2e3c8)</samp>](https://github.com/vitest-dev/vitest/commit/2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5731](https://github.com/vitest-dev/vitest/issues/5731) [<samp>(c469c)</samp>](https://github.com/vitest-dev/vitest/commit/c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5818](https://github.com/vitest-dev/vitest/issues/5818) [<samp>(7afb3)</samp>](https://github.com/vitest-dev/vitest/commit/7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5954](https://github.com/vitest-dev/vitest/issues/5954) [<samp>(70805)</samp>](https://github.com/vitest-dev/vitest/commit/708051319) - Exclude bench files from coverage - by [@​kouak](https://github.com/kouak) in [https://github.com/vitest-dev/vitest/issues/5983](https://github.com/vitest-dev/vitest/issues/5983) [<samp>(429e1)</samp>](https://github.com/vitest-dev/vitest/commit/429e1a7f8) - Vite to ignore dynamic import of provider - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5998](https://github.com/vitest-dev/vitest/issues/5998) [<samp>(6d884)</samp>](https://github.com/vitest-dev/vitest/commit/6d8848e86) - Istanbul to support import attributes - by [@​Gravitonic](https://github.com/Gravitonic) in [https://github.com/vitest-dev/vitest/issues/6006](https://github.com/vitest-dev/vitest/issues/6006) [<samp>(2898a)</samp>](https://github.com/vitest-dev/vitest/commit/2898a525d) - Support overriding `exclude` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5997](https://github.com/vitest-dev/vitest/issues/5997) [<samp>(169bc)</samp>](https://github.com/vitest-dev/vitest/commit/169bc1fde) - Remove work-around for implicit `else` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6014](https://github.com/vitest-dev/vitest/issues/6014) [<samp>(368c1)</samp>](https://github.com/vitest-dev/vitest/commit/368c13728) - **deps**: - Update dependency [@​testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in [https://github.com/vitest-dev/vitest/issues/5866](https://github.com/vitest-dev/vitest/issues/5866) [<samp>(e9745)</samp>](https://github.com/vitest-dev/vitest/commit/e9745997e) - Update vulnerable `test-exclude` to v7 - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5867](https://github.com/vitest-dev/vitest/issues/5867) [<samp>(0a715)</samp>](https://github.com/vitest-dev/vitest/commit/0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5692](https://github.com/vitest-dev/vitest/issues/5692) [<samp>(1532c)</samp>](https://github.com/vitest-dev/vitest/commit/1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@​AriPerkkio](https://github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/5840](https://github.com/vitest-dev/vitest/issues/5840) [<samp>(a60a1)</samp>](https://github.com/vitest-dev/vitest/commit/a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@​pengooseDev](https://github.com/pengooseDev) in [https://github.com/vitest-dev/vitest/issues/5737](https://github.com/vitest-dev/vitest/issues/5737) [<samp>(a20e7)</samp>](https://github.com/vitest-dev/vitest/commit/a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@​pengooseDev](https://github.com/pengooseDev) in [https://github.com/vitest-dev/vitest/issues/5806](https://github.com/vitest-dev/vitest/issues/5806) [<samp>(9ac8f)</samp>](https://github.com/vitest-dev/vitest/commit/9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5894](https://github.com/vitest-dev/vitest/issues/5894) [<samp>(88006)</samp>](https://github.com/vitest-dev/vitest/commit/8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](https://github.com/vitest-dev/vitest/commit/4776eca1d) - **types**: - Mark pool options as not available in project config - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5934](https://github.com/vitest-dev/vitest/issues/5934) [<samp>(486fd)</samp>](https://github.com/vitest-dev/vitest/commit/486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5792](https://github.com/vitest-dev/vitest/issues/5792) [<samp>(48c50)</samp>](https://github.com/vitest-dev/vitest/commit/48c502fbe) - Update running todo tests inside todo suites (each) - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5939](https://github.com/vitest-dev/vitest/issues/5939) [<samp>(63ae1)</samp>](https://github.com/vitest-dev/vitest/commit/63ae10bd9) - `FileDetails` title status icon not being updated - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5942](https://github.com/vitest-dev/vitest/issues/5942) [<samp>(e9ddf)</samp>](https://github.com/vitest-dev/vitest/commit/e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5863](https://github.com/vitest-dev/vitest/issues/5863) [<samp>(7cbd9)</samp>](https://github.com/vitest-dev/vitest/commit/7cbd943c7) - **utils**: - Produce valid snapshot names - by [@​dubzzz](https://github.com/dubzzz) in [https://github.com/vitest-dev/vitest/issues/5724](https://github.com/vitest-dev/vitest/issues/5724) [<samp>(1ec61)</samp>](https://github.com/vitest-dev/vitest/commit/1ec61ceee) - Fix color util maximum call stack error - by [@​hi-ogawa](https://github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/5733](https://github.com/vitest-dev/vitest/issues/5733) [<samp>(a4ec5)</samp>](https://github.com/vitest-dev/vitest/commit/a4ec58319) - Package exports - by [@​userquin](https://github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/5847](https://github.com/vitest-dev/vitest/issues/5847) [<samp>(07876)</samp>](https://github.com/vitest-dev/vitest/commit/07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6017](https://github.com/vitest-dev/vitest/issues/6017) [<samp>(d87be)</samp>](https://github.com/vitest-dev/vitest/commit/d87bef961) - **vitest**: - Expose `provide` to the public API - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5897](https://github.com/vitest-dev/vitest/issues/5897) [<samp>(66e64)</samp>](https://github.com/vitest-dev/vitest/commit/66e648ff8) - Cache fs code only for forks pool - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/5909](https://github.com/vitest-dev/vitest/issues/5909) [<samp>(e30d9)</samp>](https://github.com/vitest-dev/vitest/commit/e30d9b4d5) - Allow testing unandled rejection/exception - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6016](https://github.com/vitest-dev/vitest/issues/6016) [<samp>(c8d56)</samp>](https://github.com/vitest-dev/vitest/commit/c8d56fe5f) - Show all failed tests when rerunning a test - by [@​sheremet-va](https://github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6022](https://github.com/vitest-dev/vitest/issues/6022) [<samp>(91ba6)</samp>](https://github.com/vitest-dev/vitest/commit/91ba6f95e) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/6b29f3ddc86060cf3265959d4ae32e90b186cb92...v2.0.0) </details> <details> <summary>mafintosh/why-is-node-running (why-is-node-running)</summary> ### [`v3.2.0`](https://github.com/mafintosh/why-is-node-running/releases/tag/v3.2.0) [Compare Source](https://github.com/mafintosh/why-is-node-running/compare/v3.1.0...v3.2.0) #### Notable Changes ##### Relative file paths The file paths shown in the output are now relative to the current working directory, if a path is outside of the current working directory the full absolute path will be used instead. **Before** ```log There are 4 handle(s) keeping the process running ### Timeout /path/to/project/example.js:6 - setInterval(() => {}, 1000) /path/to/project/example.js:10 - startServer() ### TCPSERVERWRAP /path/to/project/example.js:7 - server.listen(0) /path/to/project/example.js:10 - startServer() ### Timeout /path/to/project/example.js:6 - setInterval(() => {}, 1000) /path/to/project/example.js:11 - startServer() ### TCPSERVERWRAP /path/to/project/example.js:7 - server.listen(0) /path/to/project/example.js:11 - startServer() ``` **After** There are 4 handle(s) keeping the process running ### Timeout example.js:6 - setInterval(() => {}, 1000) example.js:10 - startServer() ### TCPSERVERWRAP example.js:7 - server.listen(0) example.js:10 - startServer() ### Timeout example.js:6 - setInterval(() => {}, 1000) example.js:11 - startServer() ### TCPSERVERWRAP example.js:7 - server.listen(0) example.js:11 - startServer() ##### No more dependencies This version of `why-is-node-running` removes all of it's additional dependencies, resulting in a smaller overall package size. #### What's Changed - Add missing permissions to publish workflow by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/72](https://github.com/mafintosh/why-is-node-running/pull/72) - Add correct Node.js versions to README by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/73](https://github.com/mafintosh/why-is-node-running/pull/73) - Re-write README to better present installation options by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/74](https://github.com/mafintosh/why-is-node-running/pull/74) - Update example code to match README by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/75](https://github.com/mafintosh/why-is-node-running/pull/75) - Add `files` field to `package.json` by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/76](https://github.com/mafintosh/why-is-node-running/pull/76) - Remove dependeny on `siginfo` package by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/77](https://github.com/mafintosh/why-is-node-running/pull/77) - Use relative paths for files under current working directory by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/78](https://github.com/mafintosh/why-is-node-running/pull/78) - Refactor code to modern JavaScript syntax by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/79](https://github.com/mafintosh/why-is-node-running/pull/79) - Replace `stackback` with internal implementation by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/80](https://github.com/mafintosh/why-is-node-running/pull/80) **Full Changelog**: https://github.com/mafintosh/why-is-node-running/compare/v3.1.0...v3.2.0 ### [`v3.1.0`](https://github.com/mafintosh/why-is-node-running/releases/tag/v3.1.0) [Compare Source](https://github.com/mafintosh/why-is-node-running/compare/v3.0.0...v3.1.0) #### What's Changed - Fix typo in `include` entrypoint by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/71](https://github.com/mafintosh/why-is-node-running/pull/71) - Describe usage of CLI through `npx` by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/66](https://github.com/mafintosh/why-is-node-running/pull/66) - Add type definitions for TypeScript by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/70](https://github.com/mafintosh/why-is-node-running/pull/70) - Add GitHub Actions workflow to publish package by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/69](https://github.com/mafintosh/why-is-node-running/pull/69) **Full Changelog**: https://github.com/mafintosh/why-is-node-running/compare/v3.0.0...v3.1.0 ### [`v3.0.0`](https://github.com/mafintosh/why-is-node-running/releases/tag/v3.0.0) [Compare Source](https://github.com/mafintosh/why-is-node-running/compare/v2.3.0...v3.0.0) #### What's Changed - Use standard JavaScript modules by [@​jonkoops](https://github.com/jonkoops) in [https://github.com/mafintosh/why-is-node-running/pull/67](https://github.com/mafintosh/why-is-node-running/pull/67) #### Breaking Changes This release raises the required Node.js version to 20.11 or higher, and introduces support for standardized JavaScript modules. This makes the package incompatible with CommonJS based environments and is thus a breaking change. If you want to use this version the following changes should be made: **Use JavaScript modules instead of CommonJS** ```diff -const why = require('why-is-node-running') +import why from 'why-is-node-running' ``` **Use `--import` instead of `--require`** ```diff -node --require why-is-node-running/include /path/to/some/file.js +node --import why-is-node-running/include /path/to/some/file.js ``` **Full Changelog**: https://github.com/mafintosh/why-is-node-running/compare/v2.3.0...v3.0.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 10am on monday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/rolldown/rolldown). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM4LjIwLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vitest](https://github.com/vitest-dev/vitest) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`1.6.0` -> `2.0.5`](https://renovatebot.com/diffs/npm/vitest/1.6.0/2.0.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/1.6.0/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest (vitest)</summary> ### [`v2.0.5`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6149 [<samp>(13d85)</samp>](https://github.com/vitest-dev/vitest/commit/13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6191 [<samp>(29176)</samp>](https://github.com/vitest-dev/vitest/commit/291766d7) - `testNamePattern` adds leading space - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#6186 [<samp>(073a5)</samp>](https://github.com/vitest-dev/vitest/commit/073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](https://github.com/vitest-dev/vitest/commit/e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6088 [<samp>(883f3)</samp>](https://github.com/vitest-dev/vitest/commit/883f3482) - Correctly import optimized module in vi.importActual - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6219 [<samp>(804ff)</samp>](https://github.com/vitest-dev/vitest/commit/804ff2fd) - Passing options to hover/unhover - by [@​MNeverOff](https://github.com/MNeverOff) in [vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](https://github.com/vitest-dev/vitest/commit/d4c005bc) - Improve unique CSS selector generation - by [@​zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in [vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](https://github.com/vitest-dev/vitest/commit/e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](https://github.com/vitest-dev/vitest/commit/93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](https://github.com/vitest-dev/vitest/commit/8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6204 [<samp>(a48be)</samp>](https://github.com/vitest-dev/vitest/commit/a48be6ff) - **web-worker**: - Expose globals on self - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](https://github.com/vitest-dev/vitest/commit/12bb567e) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5) ### [`v2.0.4`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@​hahanein](https://github.com/hahanein) in [vitest-dev/vitest#5105 [<samp>(38269)</samp>](https://github.com/vitest-dev/vitest/commit/38269415) - Resolve assets imported with `require` - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6159 [<samp>(807a2)</samp>](https://github.com/vitest-dev/vitest/commit/807a2cbc) - **browser**: - Don't panic if [@​vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](https://github.com/vitest-dev/vitest/commit/ccfcd488) - Set global filepath - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](https://github.com/vitest-dev/vitest/commit/0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#6113 [<samp>(2d620)</samp>](https://github.com/vitest-dev/vitest/commit/2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@​thor-juhasz](https://github.com/thor-juhasz) and [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](https://github.com/vitest-dev/vitest/commit/02e3f003) - Consistent type-only file handling - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#6183 [<samp>(90576)</samp>](https://github.com/vitest-dev/vitest/commit/90576148) - Ignore `*.cts` files - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#6189 [<samp>(5da45)</samp>](https://github.com/vitest-dev/vitest/commit/5da45db1) - Add `thresholds.<glob>.100` option - by [@​thor-juhasz](https://github.com/thor-juhasz) and [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#6174 [<samp>(f6845)</samp>](https://github.com/vitest-dev/vitest/commit/f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@​hi-ogawa](https://github.com/hi-ogawa) in [vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](https://github.com/vitest-dev/vitest/commit/7a75bd4c) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4) ### [`v2.0.3`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#6106 [<samp>(840e0)</samp>](https://github.com/vitest-dev/vitest/commit/840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#6110 [<samp>(f8519)</samp>](https://github.com/vitest-dev/vitest/commit/f851982e) - **browser**: - Don't import from "vite" - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](https://github.com/vitest-dev/vitest/commit/35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](https://github.com/vitest-dev/vitest/commit/f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@​hi-ogawa](https://github.com/hi-ogawa) in [vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](https://github.com/vitest-dev/vitest/commit/e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@​syi0808](https://github.com/syi0808) in [vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](https://github.com/vitest-dev/vitest/commit/93ebdefc) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3) ### [`v2.0.2`](https://github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) ### [`v2.0.1`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) [Compare Source](https://github.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://github.com/sheremet-va) in [vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](https://github.com/vitest-dev/vitest/commit/4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](https://github.com/vitest-dev/vitest/commit/f94ede02) - **vitest**: Print only running files, not every file - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6052 [<samp>(4d559)</samp>](https://github.com/vitest-dev/vitest/commit/4d5597df) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1) ### [`v2.0.0`](https://github.com/vitest-dev/vitest/releases/tag/v2.0.0) [Compare Source](https://github.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://github.com/hi-ogawa)** in [vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](https://github.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6) - Remove `--segfault-retry` - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](https://github.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://github.com/sheremet-va) in [vitest-dev/vitest#5609 [<samp>(1277d)</samp>](https://github.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://github.com/AriPerkkio) in [vitest-dev/vitest#5543 [<samp>(31994)</samp>](https://github.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 [vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](https://github.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://github.com/sheremet-va) in [vitest-dev/vitest#5135 [<samp>(73646)</samp>](https://github.com/vitest-dev/vitest/commit/73646b638) - Remove watchExclude - by [@​patak-dev](https://github.com/patak-dev) in [vitest-dev/vitest#5177 [<samp>(d7371)</samp>](https://github.com/vitest-dev/vitest/commit/d7371eae3) - Change default `pool` to `'forks'` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](https://github.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://github.com/AriPerkkio) in [vitest-dev/vitest#5736 [<samp>(b7438)</samp>](https://github.com/vitest-dev/vitest/commit/b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5749 [<samp>(5f710)</samp>](https://github.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://github.com/sheremet-va) in [vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](https://github.com/vitest-dev/vitest/commit/ddb09eb12) - Don't exit process if config failed - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5715 [<samp>(f232f)</samp>](https://github.com/vitest-dev/vitest/commit/f232fdd61) - Add meta to `json` output - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5802 [<samp>(dd754)</samp>](https://github.com/vitest-dev/vitest/commit/dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5842 [<samp>(49f34)</samp>](https://github.com/vitest-dev/vitest/commit/49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6013 [<samp>(583dd)</samp>](https://github.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://github.com/sheremet-va) in [vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](https://github.com/vitest-dev/vitest/commit/dbbbe4304) - Support concurrent suites - by **[@​hi-ogawa](https://github.com/hi-ogawa)** in [vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](https://github.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa) ##### 🚀 Features - Pretty print diffs coming from cause - by [@​dubzzz](https://github.com/dubzzz) in [vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](https://github.com/vitest-dev/vitest/commit/6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](https://github.com/vitest-dev/vitest/commit/a99a14c1c) - Remove deprecated options - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5696 [<samp>(5c308)</samp>](https://github.com/vitest-dev/vitest/commit/5c308edc6) - Add blob reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5663 [<samp>(e2053)</samp>](https://github.com/vitest-dev/vitest/commit/e20538a36) - Add expect.poll utility - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](https://github.com/vitest-dev/vitest/commit/e2e0ff46a) - Add browser.ui option - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5771 [<samp>(a5033)</samp>](https://github.com/vitest-dev/vitest/commit/a50330eea) - Add median to `--output-json` - by [@​Joristdh](https://github.com/Joristdh) in [vitest-dev/vitest#5745 [<samp>(0766b)</samp>](https://github.com/vitest-dev/vitest/commit/0766b7f72) - Allow augmenting config.test.env - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5784 [<samp>(b2469)</samp>](https://github.com/vitest-dev/vitest/commit/b24691efd) - Implement module mocking in browser mode - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](https://github.com/vitest-dev/vitest/commit/7b2f64cfa) - Allow configuring expect options in the config - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](https://github.com/vitest-dev/vitest/commit/fc53f5634) - Add an option to print console stack trace - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](https://github.com/vitest-dev/vitest/commit/e4fe6f51a) - Add browser frame to UI - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5808 [<samp>(3796d)</samp>](https://github.com/vitest-dev/vitest/commit/3796dd7e0) - Image type add bmp - by **btea** in [vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](https://github.com/vitest-dev/vitest/commit/98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5993 [<samp>(be323)</samp>](https://github.com/vitest-dev/vitest/commit/be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](https://github.com/vitest-dev/vitest/commit/f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5097 [<samp>(aa431)</samp>](https://github.com/vitest-dev/vitest/commit/aa431f4db) - Do not reload the page during watch mode - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](https://github.com/vitest-dev/vitest/commit/e5b9a0be4) - Support changing the viewport - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5811 [<samp>(71851)</samp>](https://github.com/vitest-dev/vitest/commit/718512d80) - Add browser iframe mouse interaction - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](https://github.com/vitest-dev/vitest/commit/f29b9d408) - Support `click` event - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5777 [<samp>(839c3)</samp>](https://github.com/vitest-dev/vitest/commit/839c39f06) - Rename none provider to preview, make it default - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5826 [<samp>(18310)</samp>](https://github.com/vitest-dev/vitest/commit/1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5853 [<samp>(81c42)</samp>](https://github.com/vitest-dev/vitest/commit/81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](https://github.com/vitest-dev/vitest/commit/4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](https://github.com/vitest-dev/vitest/commit/3a96a3d0e) - Expose CDP in the browser - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5938 [<samp>(bec43)</samp>](https://github.com/vitest-dev/vitest/commit/bec434cb6) - Add "init" command for browser tests - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5960 [<samp>(49e97)</samp>](https://github.com/vitest-dev/vitest/commit/49e973cb9) - Add an option to take screenshots if the browser test fails - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5975 [<samp>(154cb)</samp>](https://github.com/vitest-dev/vitest/commit/154cb22de) - Add `tripleClick` to interactive api - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5987 [<samp>(200a4)</samp>](https://github.com/vitest-dev/vitest/commit/200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@​userquin](https://github.com/userquin) and [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5984 [<samp>(ff978)</samp>](https://github.com/vitest-dev/vitest/commit/ff978e58d) - **config**: - Allow percentage value for workers option - by [@​syi0808](https://github.com/syi0808) in [vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](https://github.com/vitest-dev/vitest/commit/b1a27d404) - **runner**: - Implement `test.for` - by [@​hi-ogawa](https://github.com/hi-ogawa) and [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5861 [<samp>(c2380)</samp>](https://github.com/vitest-dev/vitest/commit/c238072fd) - **spy**: - Collect mock.contexts - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](https://github.com/vitest-dev/vitest/commit/3b31a56d5) - **ui**: - Render tests in a tree - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5807 [<samp>(7900f)</samp>](https://github.com/vitest-dev/vitest/commit/7900f9f89) - Load module graph on tab selection - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5844 [<samp>(b117e)</samp>](https://github.com/vitest-dev/vitest/commit/b117e8756) - Replace navigation tree with test explorer - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](https://github.com/vitest-dev/vitest/commit/45dfc95ae) - Add initializing explorer logic - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](https://github.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://github.com/userquin) and **Anjorin Damilare** in [vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](https://github.com/vitest-dev/vitest/commit/7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5906 [<samp>(e6020)</samp>](https://github.com/vitest-dev/vitest/commit/e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5678 [<samp>(34a80)</samp>](https://github.com/vitest-dev/vitest/commit/34a80b392) - Repeatable `--exclude` option - by [@​fregante](https://github.com/fregante) in [vitest-dev/vitest#5782 [<samp>(d6700)</samp>](https://github.com/vitest-dev/vitest/commit/d6700bbd8) - Remove browser.fileParallelism - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5790 [<samp>(b881e)</samp>](https://github.com/vitest-dev/vitest/commit/b881e88b2) - Install UI icons - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](https://github.com/vitest-dev/vitest/commit/b84f1721d) - Remove process.exit if workspace project failed to be created - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5804 [<samp>(a820e)</samp>](https://github.com/vitest-dev/vitest/commit/a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@​pedro00dk](https://github.com/pedro00dk) in [vitest-dev/vitest#5875 [<samp>(04107)</samp>](https://github.com/vitest-dev/vitest/commit/041076e7c) - ToJSON recursive error serialization - by [@​eddienubes](https://github.com/eddienubes) in [vitest-dev/vitest#5848 and [vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](https://github.com/vitest-dev/vitest/commit/8d55d6bd4) - Print error properties only in verbose reporter - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](https://github.com/vitest-dev/vitest/commit/2bd8d9d6f) - Use TTY reporter when running in Deno - by [@​marvinhagemeister](https://github.com/marvinhagemeister) in [vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](https://github.com/vitest-dev/vitest/commit/e0f45cb57) - Don't override uppercase - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](https://github.com/vitest-dev/vitest/commit/caef40a0b) - Clear screen and scrollback on iTerm2 - by [@​kxalex](https://github.com/kxalex) in [vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](https://github.com/vitest-dev/vitest/commit/d7f23d08c) - Include pretty-format in [@​vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](https://github.com/vitest-dev/vitest/commit/42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](https://github.com/vitest-dev/vitest/commit/8f65ae906) - **api**: - Correct `project.provide` type - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](https://github.com/vitest-dev/vitest/commit/0eda99de9) - Don't call process.exit manually - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](https://github.com/vitest-dev/vitest/commit/e9b638d40) - **browser**: - Display UI - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](https://github.com/vitest-dev/vitest/commit/d41e46a81) - Browser actions icons colors - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](https://github.com/vitest-dev/vitest/commit/f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](https://github.com/vitest-dev/vitest/commit/5ebb3abf5) - Don't get stuck after the manual page refresh - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](https://github.com/vitest-dev/vitest/commit/2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5823 [<samp>(34a31)</samp>](https://github.com/vitest-dev/vitest/commit/34a310da1) - Always clean up iframes on rerun - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5827 [<samp>(087fa)</samp>](https://github.com/vitest-dev/vitest/commit/087fa87c3) - Support [@​testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](https://github.com/vitest-dev/vitest/commit/76b82e5b9) - Print correct transformed module graph - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5833 [<samp>(a7581)</samp>](https://github.com/vitest-dev/vitest/commit/a75815756) - Use `preview` provider when running in StackBlitz - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5836 [<samp>(76e13)</samp>](https://github.com/vitest-dev/vitest/commit/76e13587c) - Specify entries for correct deps optimization - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](https://github.com/vitest-dev/vitest/commit/c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](https://github.com/vitest-dev/vitest/commit/caaafd903) - Don't optimize Vitest dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](https://github.com/vitest-dev/vitest/commit/f15b4e99d) - Set server.open to false and move error handling after init - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5845 [<samp>(47003)</samp>](https://github.com/vitest-dev/vitest/commit/470036794) - Show correct prepare time - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5852 [<samp>(52d54)</samp>](https://github.com/vitest-dev/vitest/commit/52d545bf9) - Resolve `coverage.reporter` from string values - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5920 [<samp>(f33da)</samp>](https://github.com/vitest-dev/vitest/commit/f33dabbef) - Correctly update inline snapshot if changed - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5925 [<samp>(2380c)</samp>](https://github.com/vitest-dev/vitest/commit/2380cb95e) - Remove "util" warning - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5935 [<samp>(48f28)</samp>](https://github.com/vitest-dev/vitest/commit/48f28f731) - Remove hacky retry - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](https://github.com/vitest-dev/vitest/commit/2a2c9085a) - Make userEvent more stable when running in parallel - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5974 [<samp>(14a21)</samp>](https://github.com/vitest-dev/vitest/commit/14a217d53) - Print screenshot path alongside the test error message - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5992 [<samp>(15289)</samp>](https://github.com/vitest-dev/vitest/commit/152891b3d) - Print correct stack trace in source files - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](https://github.com/vitest-dev/vitest/commit/62aa72081) - Correctly mock optimized cjs dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6035 [<samp>(057b4)</samp>](https://github.com/vitest-dev/vitest/commit/057b4f34b) - Support shadow root and svg elements - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](https://github.com/vitest-dev/vitest/commit/2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5731 [<samp>(c469c)</samp>](https://github.com/vitest-dev/vitest/commit/c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](https://github.com/vitest-dev/vitest/commit/7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5954 [<samp>(70805)</samp>](https://github.com/vitest-dev/vitest/commit/708051319) - Exclude bench files from coverage - by [@​kouak](https://github.com/kouak) in [vitest-dev/vitest#5983 [<samp>(429e1)</samp>](https://github.com/vitest-dev/vitest/commit/429e1a7f8) - Vite to ignore dynamic import of provider - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5998 [<samp>(6d884)</samp>](https://github.com/vitest-dev/vitest/commit/6d8848e86) - Istanbul to support import attributes - by [@​Gravitonic](https://github.com/Gravitonic) in [vitest-dev/vitest#6006 [<samp>(2898a)</samp>](https://github.com/vitest-dev/vitest/commit/2898a525d) - Support overriding `exclude` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5997 [<samp>(169bc)</samp>](https://github.com/vitest-dev/vitest/commit/169bc1fde) - Remove work-around for implicit `else` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#6014 [<samp>(368c1)</samp>](https://github.com/vitest-dev/vitest/commit/368c13728) - **deps**: - Update dependency [@​testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in [vitest-dev/vitest#5866 [<samp>(e9745)</samp>](https://github.com/vitest-dev/vitest/commit/e9745997e) - Update vulnerable `test-exclude` to v7 - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5867 [<samp>(0a715)</samp>](https://github.com/vitest-dev/vitest/commit/0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@​hi-ogawa](https://github.com/hi-ogawa) in [vitest-dev/vitest#5692 [<samp>(1532c)</samp>](https://github.com/vitest-dev/vitest/commit/1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@​AriPerkkio](https://github.com/AriPerkkio) in [vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](https://github.com/vitest-dev/vitest/commit/a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@​pengooseDev](https://github.com/pengooseDev) in [vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](https://github.com/vitest-dev/vitest/commit/a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@​pengooseDev](https://github.com/pengooseDev) in [vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](https://github.com/vitest-dev/vitest/commit/9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@​hi-ogawa](https://github.com/hi-ogawa) in [vitest-dev/vitest#5894 [<samp>(88006)</samp>](https://github.com/vitest-dev/vitest/commit/8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@​sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](https://github.com/vitest-dev/vitest/commit/4776eca1d) - **types**: - Mark pool options as not available in project config - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5934 [<samp>(486fd)</samp>](https://github.com/vitest-dev/vitest/commit/486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5792 [<samp>(48c50)</samp>](https://github.com/vitest-dev/vitest/commit/48c502fbe) - Update running todo tests inside todo suites (each) - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](https://github.com/vitest-dev/vitest/commit/63ae10bd9) - `FileDetails` title status icon not being updated - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](https://github.com/vitest-dev/vitest/commit/e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](https://github.com/vitest-dev/vitest/commit/7cbd943c7) - **utils**: - Produce valid snapshot names - by [@​dubzzz](https://github.com/dubzzz) in [vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](https://github.com/vitest-dev/vitest/commit/1ec61ceee) - Fix color util maximum call stack error - by [@​hi-ogawa](https://github.com/hi-ogawa) in [vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](https://github.com/vitest-dev/vitest/commit/a4ec58319) - Package exports - by [@​userquin](https://github.com/userquin) in [vitest-dev/vitest#5847 [<samp>(07876)</samp>](https://github.com/vitest-dev/vitest/commit/07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6017 [<samp>(d87be)</samp>](https://github.com/vitest-dev/vitest/commit/d87bef961) - **vitest**: - Expose `provide` to the public API - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5897 [<samp>(66e64)</samp>](https://github.com/vitest-dev/vitest/commit/66e648ff8) - Cache fs code only for forks pool - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](https://github.com/vitest-dev/vitest/commit/e30d9b4d5) - Allow testing unandled rejection/exception - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](https://github.com/vitest-dev/vitest/commit/c8d56fe5f) - Show all failed tests when rerunning a test - by [@​sheremet-va](https://github.com/sheremet-va) in [vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](https://github.com/vitest-dev/vitest/commit/91ba6f95e) ##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/6b29f3ddc86060cf3265959d4ae32e90b186cb92...v2.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/kumojin/extreme-carpaccio). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
##### [v2.0.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.5) ##### 🚀 Features - Introduce experimental reported tasks - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6149 [<samp>(13d85)</samp>](vitest-dev/vitest@13d85bd1) - This is part of the experimental API and doesn't follow semver. We are hoping to stabilize it for 2.1. If you are working with custom reporters, give this a go! ##### 🐞 Bug Fixes - Show a difference between string characters if both values are strings - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6191 [<samp>(29176)</samp>](vitest-dev/vitest@291766d7) - `testNamePattern` adds leading space - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6186 [<samp>(073a5)</samp>](vitest-dev/vitest@073a50c9) - **browser**: - Don't bundle `afterEach` cleanup hooks in node entrypoint - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6192 [<samp>(e6fbc)</samp>](vitest-dev/vitest@e6fbc620) - UserEvent.setup initiates a separate state for userEvent instance - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6088 [<samp>(883f3)</samp>](vitest-dev/vitest@883f3482) - Correctly import optimized module in vi.importActual - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6219 [<samp>(804ff)</samp>](vitest-dev/vitest@804ff2fd) - Passing options to hover/unhover - by [@MNeverOff](https://github.com/MNeverOff) in vitest-dev/vitest#6175 [<samp>(d4c00)</samp>](vitest-dev/vitest@d4c005bc) - Improve unique CSS selector generation - by [@zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in vitest-dev/vitest#6243 [<samp>(e7acd)</samp>](vitest-dev/vitest@e7acd0cf) - **vitest**: - Remove nuxt from auto inline deps - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](vitest-dev/vitest@93882f38) - Improve `defineProject` and `defineWorkspace` types - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6198 [<samp>(8cd82)</samp>](vitest-dev/vitest@8cd8272b) - Correctly resolve mocked `node:*` imports in `__mocks__` folder - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6204 [<samp>(a48be)</samp>](vitest-dev/vitest@a48be6ff) - **web-worker**: - Expose globals on self - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6170 [<samp>(12bb5)</samp>](vitest-dev/vitest@12bb567e) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.4...v2.0.5) ##### [v2.0.4](https://github.com/vitest-dev/vitest/releases/tag/v2.0.4) ##### 🐞 Bug Fixes - One-line environment options - by [@hahanein](https://github.com/hahanein) in vitest-dev/vitest#5105 [<samp>(38269)</samp>](vitest-dev/vitest@38269415) - Resolve assets imported with `require` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6159 [<samp>(807a2)</samp>](vitest-dev/vitest@807a2cbc) - **browser**: - Don't panic if [@vitest/browser](https://github.com/vitest/browser) is installed outside of project root - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6135 [<samp>(ccfcd)</samp>](vitest-dev/vitest@ccfcd488) - Set global filepath - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6190 [<samp>(0d0b4)</samp>](vitest-dev/vitest@0d0b46b1) - Allow preview and open in the editor screenshot error from ui - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6113 [<samp>(2d620)</samp>](vitest-dev/vitest@2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6172 [<samp>(02e3f)</samp>](vitest-dev/vitest@02e3f003) - Consistent type-only file handling - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6183 [<samp>(90576)</samp>](vitest-dev/vitest@90576148) - Ignore `*.cts` files - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6189 [<samp>(5da45)</samp>](vitest-dev/vitest@5da45db1) - Add `thresholds.<glob>.100` option - by [@thor-juhasz](https://github.com/thor-juhasz) and [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6174 [<samp>(f6845)</samp>](vitest-dev/vitest@f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6181 [<samp>(7a75b)</samp>](vitest-dev/vitest@7a75bd4c) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.3...v2.0.4) ##### [v2.0.3](https://github.com/vitest-dev/vitest/releases/tag/v2.0.3) ##### 🚀 Features - **ui**: Show all suites/tests when parent matches - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6106 [<samp>(840e0)</samp>](vitest-dev/vitest@840e02f1) ##### 🐞 Bug Fixes - `--inspect-brk` stop on Windows - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6110 [<samp>(f8519)</samp>](vitest-dev/vitest@f851982e) - **browser**: - Don't import from "vite" - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(35655)</samp>](vitest-dev/vitest@35655419) - Allow immidiate reinvalidation of mocked dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6108 [<samp>(f44cc)</samp>](vitest-dev/vitest@f44cc917) - **spy**: - Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#6086 [<samp>(e9f9a)</samp>](vitest-dev/vitest@e9f9adcd) - **vite-node**: - Remove suffix slash on file protocol for window - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#6109 [<samp>(93ebd)</samp>](vitest-dev/vitest@93ebdefc) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.2...v2.0.3) ##### [v2.0.2](vitest-dev/vitest@v2.0.1...v2.0.2) ##### [v2.0.1](https://github.com/vitest-dev/vitest/releases/tag/v2.0.1) ##### 🐞 Bug Fixes - **browser**: Correctly inherit browser config in a workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6054 [<samp>(4b03e)</samp>](vitest-dev/vitest@4b03e72b) - **ui**: Move virtual scroller to dev dependencies - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#6053 [<samp>(f94ed)</samp>](vitest-dev/vitest@f94ede02) - **vitest**: Print only running files, not every file - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6052 [<samp>(4d559)</samp>](vitest-dev/vitest@4d5597df) ##### [View changes on GitHub](vitest-dev/vitest@v2.0.0...v2.0.1) ##### [v2.0.0](https://github.com/vitest-dev/vitest/releases/tag/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://github.com/hi-ogawa)** in vitest-dev/vitest#4784 [<samp>(a0c1d37)</samp>](vitest-dev/vitest@a0c1d37) - Remove `--segfault-retry` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5514 [<samp>(ed60e)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5609 [<samp>(1277d)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5543 [<samp>(31994)</samp>](vitest-dev/vitest@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 vitest-dev/vitest#5423 for more details. - Add correct location and snapshot fields in json reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5434 [<samp>(bcccc)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5135 [<samp>(73646)</samp>](vitest-dev/vitest@73646b638) - Remove watchExclude - by [@patak-dev](https://github.com/patak-dev) in vitest-dev/vitest#5177 [<samp>(d7371)</samp>](vitest-dev/vitest@d7371eae3) - Change default `pool` to `'forks'` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5047 [<samp>(7f8f9)</samp>](vitest-dev/vitest@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://github.com/AriPerkkio) in vitest-dev/vitest#5736 [<samp>(b7438)</samp>](vitest-dev/vitest@b7438b9be) - Add promise-based return assertions, do not auto-resolve returned promises - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5749 [<samp>(5f710)</samp>](vitest-dev/vitest@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://github.com/sheremet-va) in vitest-dev/vitest#5726 [<samp>(ddb09)</samp>](vitest-dev/vitest@ddb09eb12) - Don't exit process if config failed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5715 [<samp>(f232f)</samp>](vitest-dev/vitest@f232fdd61) - Add meta to `json` output - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5802 [<samp>(dd754)</samp>](vitest-dev/vitest@dd754c103) - Rename `indexScripts` to `orchestratorScripts` in the browser config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5842 [<samp>(49f34)</samp>](vitest-dev/vitest@49f34ec47) - Add "vitest list" API to print collected tests without running them - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6013 [<samp>(583dd)</samp>](vitest-dev/vitest@583dd8a98) -⚠️ This changes the custom `pool` API - now requires `collectTests` method alongside `runTests`. - Remove the empty suite from the runner - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5435 [<samp>(dbbbe)</samp>](vitest-dev/vitest@dbbbe4304) - Support concurrent suites - by **[@hi-ogawa](https://github.com/hi-ogawa)** in vitest-dev/vitest#5491 [<samp>(222ce44)</samp>](vitest-dev/vitest@222ce44) ##### 🚀 Features - Pretty print diffs coming from cause - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5660 [<samp>(6faf8)</samp>](vitest-dev/vitest@6faf8f84b) - Allow import statement as vi.mock path for better IDE support - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5690 [<samp>(a99a1)</samp>](vitest-dev/vitest@a99a14c1c) - Remove deprecated options - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5696 [<samp>(5c308)</samp>](vitest-dev/vitest@5c308edc6) - Add blob reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5663 [<samp>(e2053)</samp>](vitest-dev/vitest@e20538a36) - Add expect.poll utility - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5708 [<samp>(e2e0f)</samp>](vitest-dev/vitest@e2e0ff46a) - Add browser.ui option - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5771 [<samp>(a5033)</samp>](vitest-dev/vitest@a50330eea) - Add median to `--output-json` - by [@Joristdh](https://github.com/Joristdh) in vitest-dev/vitest#5745 [<samp>(0766b)</samp>](vitest-dev/vitest@0766b7f72) - Allow augmenting config.test.env - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5784 [<samp>(b2469)</samp>](vitest-dev/vitest@b24691efd) - Implement module mocking in browser mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5765 [<samp>(7b2f6)</samp>](vitest-dev/vitest@7b2f64cfa) - Allow configuring expect options in the config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5729 [<samp>(fc53f)</samp>](vitest-dev/vitest@fc53f5634) - Add an option to print console stack trace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5720 [<samp>(e4fe6)</samp>](vitest-dev/vitest@e4fe6f51a) - Add browser frame to UI - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5808 [<samp>(3796d)</samp>](vitest-dev/vitest@3796dd7e0) - Image type add bmp - by **btea** in vitest-dev/vitest#5921 [<samp>(98f9b)</samp>](vitest-dev/vitest@98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5993 [<samp>(be323)</samp>](vitest-dev/vitest@be3231763) - Expose `parseAst`, `parseAstAsync` from vite - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](vitest-dev/vitest@f645e48c5) - **browser**: - Add commands to communicate betweens server and the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5097 [<samp>(aa431)</samp>](vitest-dev/vitest@aa431f4db) - Do not reload the page during watch mode - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5810 [<samp>(e5b9a)</samp>](vitest-dev/vitest@e5b9a0be4) - Support changing the viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5811 [<samp>(71851)</samp>](vitest-dev/vitest@718512d80) - Add browser iframe mouse interaction - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5815 [<samp>(f29b9)</samp>](vitest-dev/vitest@f29b9d408) - Support `click` event - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5777 [<samp>(839c3)</samp>](vitest-dev/vitest@839c39f06) - Rename none provider to preview, make it default - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5826 [<samp>(18310)</samp>](vitest-dev/vitest@1831008b1) - Run tests in parallel in headless mode, add `page.screenshot` method - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5853 [<samp>(81c42)</samp>](vitest-dev/vitest@81c42fc8a) - Implement several `userEvent` methods, add `fill` and `dragAndDrop` events - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5882 [<samp>(4dbea)</samp>](vitest-dev/vitest@4dbea4aed) - Introduce `expect.dom` method and bundle `jest-dom` matchers with `@vitest/browser` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5910 [<samp>(3a96a)</samp>](vitest-dev/vitest@3a96a3d0e) - Expose CDP in the browser - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5938 [<samp>(bec43)</samp>](vitest-dev/vitest@bec434cb6) - Add "init" command for browser tests - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5960 [<samp>(49e97)</samp>](vitest-dev/vitest@49e973cb9) - Add an option to take screenshots if the browser test fails - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5975 [<samp>(154cb)</samp>](vitest-dev/vitest@154cb22de) - Add `tripleClick` to interactive api - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5987 [<samp>(200a4)</samp>](vitest-dev/vitest@200a4349a) - Playwright provider doesn't allow resizing the browser viewport - by [@userquin](https://github.com/userquin) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5984 [<samp>(ff978)</samp>](vitest-dev/vitest@ff978e58d) - **config**: - Allow percentage value for workers option - by [@syi0808](https://github.com/syi0808) in vitest-dev/vitest#5982 [<samp>(b1a27)</samp>](vitest-dev/vitest@b1a27d404) - **runner**: - Implement `test.for` - by [@hi-ogawa](https://github.com/hi-ogawa) and [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5861 [<samp>(c2380)</samp>](vitest-dev/vitest@c238072fd) - **spy**: - Collect mock.contexts - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5955 [<samp>(3b31a)</samp>](vitest-dev/vitest@3b31a56d5) - **ui**: - Render tests in a tree - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5807 [<samp>(7900f)</samp>](vitest-dev/vitest@7900f9f89) - Load module graph on tab selection - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5844 [<samp>(b117e)</samp>](vitest-dev/vitest@b117e8756) - Replace navigation tree with test explorer - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5907 [<samp>(45dfc)</samp>](vitest-dev/vitest@45dfc95ae) - Add initializing explorer logic - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5941 [<samp>(c31c4)</samp>](vitest-dev/vitest@c31c41c72) - Add action to explorer item to show the test/suite line in the source code tab - by [@userquin](https://github.com/userquin) and **Anjorin Damilare** in vitest-dev/vitest#5948 [<samp>(7ec29)</samp>](vitest-dev/vitest@7ec298eb3) - **ws-client**: - Allow change reactive for state, filesMap and idMap - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5906 [<samp>(e6020)</samp>](vitest-dev/vitest@e6020b9c2) ##### 🐞 Bug Fixes - Print console statements in vmThreads - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5678 [<samp>(34a80)</samp>](vitest-dev/vitest@34a80b392) - Repeatable `--exclude` option - by [@fregante](https://github.com/fregante) in vitest-dev/vitest#5782 [<samp>(d6700)</samp>](vitest-dev/vitest@d6700bbd8) - Remove browser.fileParallelism - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5790 [<samp>(b881e)</samp>](vitest-dev/vitest@b881e88b2) - Install UI icons - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](vitest-dev/vitest@b84f1721d) - Remove process.exit if workspace project failed to be created - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5804 [<samp>(a820e)</samp>](vitest-dev/vitest@a820e7ac6) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@pedro00dk](https://github.com/pedro00dk) in vitest-dev/vitest#5875 [<samp>(04107)</samp>](vitest-dev/vitest@041076e7c) - ToJSON recursive error serialization - by [@eddienubes](https://github.com/eddienubes) in vitest-dev/vitest#5848 and vitest-dev/vitest#5884 [<samp>(8d55d)</samp>](vitest-dev/vitest@8d55d6bd4) - Print error properties only in verbose reporter - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5917 [<samp>(2bd8d)</samp>](vitest-dev/vitest@2bd8d9d6f) - Use TTY reporter when running in Deno - by [@marvinhagemeister](https://github.com/marvinhagemeister) in vitest-dev/vitest#5972 [<samp>(e0f45)</samp>](vitest-dev/vitest@e0f45cb57) - Don't override uppercase - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(caef4)</samp>](vitest-dev/vitest@caef40a0b) - Clear screen and scrollback on iTerm2 - by [@kxalex](https://github.com/kxalex) in vitest-dev/vitest#5978 [<samp>(d7f23)</samp>](vitest-dev/vitest@d7f23d08c) - Include pretty-format in [@vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(42bd4)</samp>](vitest-dev/vitest@42bd4a259) - Transpile esnext to node18 to support newest JS and TS features - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#4409 [<samp>(8f65a)</samp>](vitest-dev/vitest@8f65ae906) - **api**: - Correct `project.provide` type - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5959 [<samp>(0eda9)</samp>](vitest-dev/vitest@0eda99de9) - Don't call process.exit manually - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5926 [<samp>(e9b63)</samp>](vitest-dev/vitest@e9b638d40) - **browser**: - Display UI - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](vitest-dev/vitest@d41e46a81) - Browser actions icons colors - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5816 [<samp>(f9d9b)</samp>](vitest-dev/vitest@f9d9b3bef) - Restore the original viewport when unselecting the preset viewport - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5821 [<samp>(5ebb3)</samp>](vitest-dev/vitest@5ebb3abf5) - Don't get stuck after the manual page refresh - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(2220b)</samp>](vitest-dev/vitest@2220bb3fe) - Use iframe id instead of calculating it from filenames - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5823 [<samp>(34a31)</samp>](vitest-dev/vitest@34a310da1) - Always clean up iframes on rerun - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5827 [<samp>(087fa)</samp>](vitest-dev/vitest@087fa87c3) - Support [@testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](vitest-dev/vitest@76b82e5b9) - Print correct transformed module graph - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5833 [<samp>(a7581)</samp>](vitest-dev/vitest@a75815756) - Use `preview` provider when running in StackBlitz - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5836 [<samp>(76e13)</samp>](vitest-dev/vitest@76e13587c) - Specify entries for correct deps optimization - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5839 [<samp>(c79b3)</samp>](vitest-dev/vitest@c79b3f1f9) - Allow iframe to load even if there is a custom CSP header - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5841 [<samp>(caaaf)</samp>](vitest-dev/vitest@caaafd903) - Don't optimize Vitest dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5843 [<samp>(f15b4)</samp>](vitest-dev/vitest@f15b4e99d) - Set server.open to false and move error handling after init - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5845 [<samp>(47003)</samp>](vitest-dev/vitest@470036794) - Show correct prepare time - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5852 [<samp>(52d54)</samp>](vitest-dev/vitest@52d545bf9) - Resolve `coverage.reporter` from string values - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5920 [<samp>(f33da)</samp>](vitest-dev/vitest@f33dabbef) - Correctly update inline snapshot if changed - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5925 [<samp>(2380c)</samp>](vitest-dev/vitest@2380cb95e) - Remove "util" warning - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5935 [<samp>(48f28)</samp>](vitest-dev/vitest@48f28f731) - Remove hacky retry - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5971 [<samp>(2a2c9)</samp>](vitest-dev/vitest@2a2c9085a) - Make userEvent more stable when running in parallel - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5974 [<samp>(14a21)</samp>](vitest-dev/vitest@14a217d53) - Print screenshot path alongside the test error message - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5992 [<samp>(15289)</samp>](vitest-dev/vitest@152891b3d) - Print correct stack trace in source files - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6003 [<samp>(62aa7)</samp>](vitest-dev/vitest@62aa72081) - Correctly mock optimized cjs dependencies - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6035 [<samp>(057b4)</samp>](vitest-dev/vitest@057b4f34b) - Support shadow root and svg elements - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6036 [<samp>(2e3c8)</samp>](vitest-dev/vitest@2e3c872ae) - **coverage**: - Clean up empty coverage reports directory - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5731 [<samp>(c469c)</samp>](vitest-dev/vitest@c469c74d7) - `thresholds.autoUpdate` to support `mergeConfig` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5818 [<samp>(7afb3)</samp>](vitest-dev/vitest@7afb3682f) - Pass thresholds errors to `stderr` of `startVitest()` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5954 [<samp>(70805)</samp>](vitest-dev/vitest@708051319) - Exclude bench files from coverage - by [@kouak](https://github.com/kouak) in vitest-dev/vitest#5983 [<samp>(429e1)</samp>](vitest-dev/vitest@429e1a7f8) - Vite to ignore dynamic import of provider - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5998 [<samp>(6d884)</samp>](vitest-dev/vitest@6d8848e86) - Istanbul to support import attributes - by [@Gravitonic](https://github.com/Gravitonic) in vitest-dev/vitest#6006 [<samp>(2898a)</samp>](vitest-dev/vitest@2898a525d) - Support overriding `exclude` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5997 [<samp>(169bc)</samp>](vitest-dev/vitest@169bc1fde) - Remove work-around for implicit `else` - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#6014 [<samp>(368c1)</samp>](vitest-dev/vitest@368c13728) - **deps**: - Update dependency [@testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in vitest-dev/vitest#5866 [<samp>(e9745)</samp>](vitest-dev/vitest@e9745997e) - Update vulnerable `test-exclude` to v7 - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5867 [<samp>(0a715)</samp>](vitest-dev/vitest@0a715946b) - **expect**: - Fix immutable.js iterable equality - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5692 [<samp>(1532c)</samp>](vitest-dev/vitest@1532c19a0) - **forks**: - Resolve `poolOptions.<name>.isolate` from `forks` options - by [@AriPerkkio](https://github.com/AriPerkkio) in vitest-dev/vitest#5840 [<samp>(a60a1)</samp>](vitest-dev/vitest@a60a140ef) - **runner**: - Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5737 [<samp>(a20e7)</samp>](vitest-dev/vitest@a20e75b89) - Ensure test.each print -0 and -NaN properly - by [@pengooseDev](https://github.com/pengooseDev) in vitest-dev/vitest#5806 [<samp>(9ac8f)</samp>](vitest-dev/vitest@9ac8ff9bd) - **snapshot**: - Fix `toMatchFileSnapshot` with empty file - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5894 [<samp>(88006)</samp>](vitest-dev/vitest@8800601d2) - **spy**: - Correctly track constructor's "this" type - by [@sheremet-va](https://github.com/sheremet-va) [<samp>(4776e)</samp>](vitest-dev/vitest@4776eca1d) - **types**: - Mark pool options as not available in project config - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5934 [<samp>(486fd)</samp>](vitest-dev/vitest@486fd1169) - **ui**: - Show correct module graph and project name in a Vitest workspace - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5792 [<samp>(48c50)</samp>](vitest-dev/vitest@48c502fbe) - Update running todo tests inside todo suites (each) - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5939 [<samp>(63ae1)</samp>](vitest-dev/vitest@63ae10bd9) - `FileDetails` title status icon not being updated - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5942 [<samp>(e9ddf)</samp>](vitest-dev/vitest@e9ddf9ce2) - **ui, browser**: - Disable mouse events when resizing main navigation panel - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5863 [<samp>(7cbd9)</samp>](vitest-dev/vitest@7cbd943c7) - **utils**: - Produce valid snapshot names - by [@dubzzz](https://github.com/dubzzz) in vitest-dev/vitest#5724 [<samp>(1ec61)</samp>](vitest-dev/vitest@1ec61ceee) - Fix color util maximum call stack error - by [@hi-ogawa](https://github.com/hi-ogawa) in vitest-dev/vitest#5733 [<samp>(a4ec5)</samp>](vitest-dev/vitest@a4ec58319) - Package exports - by [@userquin](https://github.com/userquin) in vitest-dev/vitest#5847 [<samp>(07876)</samp>](vitest-dev/vitest@07876b7e0) - **vite-node**: - Expose all envs from .env file, not just with a prefix `VITE_` - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6017 [<samp>(d87be)</samp>](vitest-dev/vitest@d87bef961) - **vitest**: - Expose `provide` to the public API - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5897 [<samp>(66e64)</samp>](vitest-dev/vitest@66e648ff8) - Cache fs code only for forks pool - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#5909 [<samp>(e30d9)</samp>](vitest-dev/vitest@e30d9b4d5) - Allow testing unandled rejection/exception - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6016 [<samp>(c8d56)</samp>](vitest-dev/vitest@c8d56fe5f) - Show all failed tests when rerunning a test - by [@sheremet-va](https://github.com/sheremet-va) in vitest-dev/vitest#6022 [<samp>(91ba6)</samp>](vitest-dev/vitest@91ba6f95e) ##### [View changes on GitHub](vitest-dev/vitest@6b29f3d...v2.0.0)
Description
--shard
option is used #5125Coverage providers can now have an optional
generateCoverage
function. Theblob
reporter will save output of this function in its reports. When--merge-reports
is called, the saved blobs will be passed to newmergeReports
method.BREAKING CHANGES:
reportCoverage
the previous first argumentreportContext
is now second argument:Example
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.