Skip to content

Commit

Permalink
chore(deps): update vitest monorepo to v2 (major) (#71)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@vitest/coverage-v8](https://redirect.github.com/vitest-dev/vitest/tree/main/packages/coverage-v8#readme) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8)) | [`^1.3.1` -> `^2.1.5`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/1.6.0/2.1.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@vitest%2fcoverage-v8/2.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitest%2fcoverage-v8/2.1.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.1.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.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [vitest](https://redirect.github.com/vitest-dev/vitest) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`^1.3.1` -> `^2.1.5`](https://renovatebot.com/diffs/npm/vitest/1.6.0/2.1.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/2.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/2.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/1.6.0/2.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/1.6.0/2.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vitest-dev/vitest (@&#8203;vitest/coverage-v8)</summary>

### [`v2.1.5`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.1.5)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.4...v2.1.5)

#####    🐞 Bug Fixes

-   `dangerouslyIgnoreUnhandledErrors` without base reporter  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6808](https://redirect.github.com/vitest-dev/vitest/issues/6808) [<samp>(0bf0a)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0bf0ab00)
-   Capture `unhandledRejection` even when base reporter is not used  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6812](https://redirect.github.com/vitest-dev/vitest/issues/6812) [<samp>(8878b)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/8878b04d)
-   Don't change the working directory when loading workspace projects  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6811](https://redirect.github.com/vitest-dev/vitest/issues/6811) [<samp>(f0aea)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f0aeaca8)
-   Remove `sequence.concurrent` from the `RuntimeConfig` type  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6880](https://redirect.github.com/vitest-dev/vitest/issues/6880) [<samp>(6af73)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/6af73d93)
-   Stop the runner before restarting, restart on workspace config change  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6859](https://redirect.github.com/vitest-dev/vitest/issues/6859) [<samp>(b01df)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/b01df47d)
-   Don't rerun on Esc or Ctrl-C during watch filter  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6895](https://redirect.github.com/vitest-dev/vitest/issues/6895) [<samp>(98f76)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/98f76ea7)
-   Print ssrTransform error  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6885](https://redirect.github.com/vitest-dev/vitest/issues/6885) [<samp>(4c96c)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/4c96cce7)
-   Throw an error and a warning if `.poll`, `.element`, `.rejects`/`.resolves`, and `locator.*` weren't awaited  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6877](https://redirect.github.com/vitest-dev/vitest/issues/6877) [<samp>(93b67)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/93b67c24)
-   **browser**:
    -   Don't process the default css styles  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6861](https://redirect.github.com/vitest-dev/vitest/issues/6861) [<samp>(0d67f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0d67f04b)
    -   Support non US key input  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6873](https://redirect.github.com/vitest-dev/vitest/issues/6873) [<samp>(5969d)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/5969d8da)
    -   Stop the browser rpc when the pool is closed  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6858](https://redirect.github.com/vitest-dev/vitest/issues/6858) [<samp>(9a0c9)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/9a0c93d7)
    -   Init browsers eagerly when tests are running  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6876](https://redirect.github.com/vitest-dev/vitest/issues/6876) [<samp>(417bd)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/417bdb42)
-   **coverage**:
    -   Report uncovered files when re-run by `enter` or `'a'`  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6848](https://redirect.github.com/vitest-dev/vitest/issues/6848) [<samp>(487c8)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/487c80ae)
-   **ui**:
    -   Remove crossorigin attributes for same origin assets  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6883](https://redirect.github.com/vitest-dev/vitest/issues/6883) [<samp>(6e793)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/6e793c64)
-   **vite-node**:
    -   Improve esm check to decide external  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6816](https://redirect.github.com/vitest-dev/vitest/issues/6816) [<samp>(7e1fa)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7e1faf3d)
    -   Top-level throw in module is not reported properly  -  by [@&#8203;vanaigr](https://redirect.github.com/vanaigr) and [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6840](https://redirect.github.com/vitest-dev/vitest/issues/6840) [<samp>(cf0cb)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/cf0cbf6a)
-   **vitest**:
    -   Use fetch() implementation from happy-dom  -  by [@&#8203;capricorn86](https://redirect.github.com/capricorn86) in [https://github.com/vitest-dev/vitest/issues/6879](https://redirect.github.com/vitest-dev/vitest/issues/6879) [<samp>(3c56f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/3c56feb4)

#####    🏎 Performance

-   Limit workspace project concurrency to available cores  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6869](https://redirect.github.com/vitest-dev/vitest/issues/6869) [<samp>(f4c04)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f4c04ab6)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.4...v2.1.5)

### [`v2.1.4`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.1.4)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.3...v2.1.4)

#####    🚀 Features

-   **browser**: Allow custom HTML path, respect plugins `transformIndexHtml`  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6725](https://redirect.github.com/vitest-dev/vitest/issues/6725) [<samp>(16902)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/169028f0)

#####    🐞 Bug Fixes

-   Don't normalize drive case letter in root  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6792](https://redirect.github.com/vitest-dev/vitest/issues/6792) [<samp>(b28cd)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/b28cd2e3)
-   **browser**:
    -   Fix default browser port  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6700](https://redirect.github.com/vitest-dev/vitest/issues/6700) [<samp>(9c518)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/9c518c14)
    -   Optimize expect-type  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6713](https://redirect.github.com/vitest-dev/vitest/issues/6713) [<samp>(07918)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/07918538)
    -   Don't polyfill process.env  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6718](https://redirect.github.com/vitest-dev/vitest/issues/6718) [<samp>(da6d2)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/da6d2ea7)
    -   Increment browser port automatically if there are several projects with browser.enabled  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6717](https://redirect.github.com/vitest-dev/vitest/issues/6717) [<samp>(a9397)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/a939779f)
    -   Cleanup keyboard state  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6731](https://redirect.github.com/vitest-dev/vitest/issues/6731) [<samp>(19278)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/19278f4c)
    -   Don't add `v=` queries to setup files imports  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6759](https://redirect.github.com/vitest-dev/vitest/issues/6759) [<samp>(b8258)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/b82584c9)
    -   User event cleanup on retry  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6764](https://redirect.github.com/vitest-dev/vitest/issues/6764) [<samp>(bdd15)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/bdd15dd1)
    -   Ignore non mocked msw requests  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6770](https://redirect.github.com/vitest-dev/vitest/issues/6770) [<samp>(9d9ba)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/9d9bad5b)
    -   Initiate MSW in the same frame as tests  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6772](https://redirect.github.com/vitest-dev/vitest/issues/6772) [<samp>(2444f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/2444ff22)
-   **deps**:
    -   Update dependency sirv to v3  -  in [https://github.com/vitest-dev/vitest/issues/6701](https://redirect.github.com/vitest-dev/vitest/issues/6701) [<samp>(fde5d)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/fde5d509)
-   **expect**:
    -   Correct behavior of `toThrowError` with empty string parameter  -  by [@&#8203;shulaoda](https://redirect.github.com/shulaoda) in [https://github.com/vitest-dev/vitest/issues/6710](https://redirect.github.com/vitest-dev/vitest/issues/6710) [<samp>(a6129)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/a61293e9)
-   **mocker**:
    -   Remove spy from peer dependencies  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6777](https://redirect.github.com/vitest-dev/vitest/issues/6777) [<samp>(3a8b5)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/3a8b56bf)
-   **vitest**:
    -   Clarify slowTestThreshold, print slow tests in non-TTY mode  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6715](https://redirect.github.com/vitest-dev/vitest/issues/6715) [<samp>(2e6aa)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/2e6aa647)
    -   Print warnings form Vite plugins  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6724](https://redirect.github.com/vitest-dev/vitest/issues/6724) [<samp>(121b1)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/121b161f)
    -   Don't fail if the working directory starts with a lowercase drive letter  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6779](https://redirect.github.com/vitest-dev/vitest/issues/6779) [<samp>(df6d7)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/df6d750b)
    -   Silence import analysis warning  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6785](https://redirect.github.com/vitest-dev/vitest/issues/6785) [<samp>(39041)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/39041ee5)
-   **vitest,runner**:
    -   Simplify `test.extend` type exports  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6707](https://redirect.github.com/vitest-dev/vitest/issues/6707) [<samp>(e5c38)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e5c388f0)

#####    🏎 Performance

-   Use `hash` to replace `createHash`  -  by [@&#8203;btea](https://redirect.github.com/btea) in [https://github.com/vitest-dev/vitest/issues/6703](https://redirect.github.com/vitest-dev/vitest/issues/6703) [<samp>(5d07b)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/5d07bba6)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.3...v2.1.4)

### [`v2.1.3`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.1.3)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.2...v2.1.3)

#####    🐞 Bug Fixes

-   Fix error diff of `toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsy`  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6697](https://redirect.github.com/vitest-dev/vitest/issues/6697) [<samp>(e0027)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e002758c)
-   **browser**:
    -   Provide aria role intellisense  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6629](https://redirect.github.com/vitest-dev/vitest/issues/6629) [<samp>(f36ea)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f36eac77)
    -   Not.toBeInTheDocument works with locators API  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6634](https://redirect.github.com/vitest-dev/vitest/issues/6634) [<samp>(8bef5)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/8bef5d2b)
    -   Use `/mockServiceWorker.js` instead of `/__vitest_msw__`  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6687](https://redirect.github.com/vitest-dev/vitest/issues/6687) [<samp>(4b2ce)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/4b2ce07f)
    -   Don't override the esbuild option in the browser mode  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6692](https://redirect.github.com/vitest-dev/vitest/issues/6692) [<samp>(d131f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d131fd64)
-   **expect**:
    -   Preserve prototype in `toMatchObject` diff  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6620](https://redirect.github.com/vitest-dev/vitest/issues/6620) [<samp>(d289e)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d289e7eb)
-   **mocker**:
    -   Specify correct spy dependency  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) [<samp>(7e958)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7e9584aa)
-   **runner**:
    -   Ensure sequential suite overrides sequence.concurrent  -  by [@&#8203;dsyddall](https://redirect.github.com/dsyddall) and [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6653](https://redirect.github.com/vitest-dev/vitest/issues/6653) [<samp>(5e6de)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/5e6de274)
-   **vitest**:
    -   Deprecate UserConfig in favor of ViteUserConfig  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6626](https://redirect.github.com/vitest-dev/vitest/issues/6626) [<samp>(496bd)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/496bd251)
    -   Don't hang with maxConcurrency 0  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6627](https://redirect.github.com/vitest-dev/vitest/issues/6627) [<samp>(946d8)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/946d8bb1)
    -   Deprecate old task types and node-reliant types  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6632](https://redirect.github.com/vitest-dev/vitest/issues/6632) [<samp>(00045)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/000459a9)
    -   Fix `<empty line>` logs when interleaving `console.log/error`  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6644](https://redirect.github.com/vitest-dev/vitest/issues/6644) [<samp>(9ece3)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/9ece3952)
    -   Show rollup error details as test error  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6686](https://redirect.github.com/vitest-dev/vitest/issues/6686) [<samp>(47dde)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/47dde76f)
    -   Always inline setup files  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6689](https://redirect.github.com/vitest-dev/vitest/issues/6689) [<samp>(19d64)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/19d64e20)
    -   Use `fast-glob` instead of `tinyglobby` in Vitest  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6688](https://redirect.github.com/vitest-dev/vitest/issues/6688) [<samp>(70baa)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/70baaaa9)
-   **web-worker**:
    -   Share mocker with main executor  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6623](https://redirect.github.com/vitest-dev/vitest/issues/6623) [<samp>(fe7b8)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/fe7b8aee)

#####    🏎 Performance

-   Reuse full name in reported tasks, update generator types  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6666](https://redirect.github.com/vitest-dev/vitest/issues/6666) [<samp>(7a0de)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7a0de0a7)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.2...v2.1.3)

### [`v2.1.2`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.1.2)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.1...v2.1.2)

#####    🐞 Bug Fixes

-   Move `Vitest.setServer` to post `configureServer` hook to enable import analysis for workspace config loading  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6584](https://redirect.github.com/vitest-dev/vitest/issues/6584) [<samp>(e7f35)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e7f35214)
-   **benchmark**:
    -   Clear `BenchmarkResult.samples` array to reduce memory usage  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) and [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6541](https://redirect.github.com/vitest-dev/vitest/issues/6541) [<samp>(a6407)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/a6407afc)
-   **browser**:
    -   Fix dynamic import inside worker  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6569](https://redirect.github.com/vitest-dev/vitest/issues/6569) [<samp>(ea2d4)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/ea2d429b)
    -   Fix browser mock factory event race condition  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6530](https://redirect.github.com/vitest-dev/vitest/issues/6530) [<samp>(f131f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f131f93b)
    -   Serve ui assets as static  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6564](https://redirect.github.com/vitest-dev/vitest/issues/6564) [<samp>(adcda)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/adcdaee8)
    -   Update solidjs testing library lib  -  by [@&#8203;CamilleTeruel](https://redirect.github.com/CamilleTeruel) in [https://github.com/vitest-dev/vitest/issues/6548](https://redirect.github.com/vitest-dev/vitest/issues/6548) [<samp>(91442)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/91442dfc)
    -   Use `data:` protocol on preview provider file upload  -  by [@&#8203;userquin](https://redirect.github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6501](https://redirect.github.com/vitest-dev/vitest/issues/6501) [<samp>(e9821)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e9821f70)
    -   Fix base for client script  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6510](https://redirect.github.com/vitest-dev/vitest/issues/6510) [<samp>(f9528)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f952874e)
    -   Throw an error if "@&#8203;vitest/browser/context" is imported outside of the browser mode  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6570](https://redirect.github.com/vitest-dev/vitest/issues/6570) [<samp>(383f1)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/383f1791)
-   **coverage**:
    -   Remove empty coverage folder on test failure too  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6547](https://redirect.github.com/vitest-dev/vitest/issues/6547) [<samp>(1371c)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/1371ca6a)
    -   Include `*.astro` by default  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6565](https://redirect.github.com/vitest-dev/vitest/issues/6565) [<samp>(f8ff7)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f8ff76a9)
    -   `cleanOnRerun: false` to invalidate previous results  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6592](https://redirect.github.com/vitest-dev/vitest/issues/6592) [<samp>(88bde)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/88bde99c)
-   **expect**:
    -   Fix `toBeDefined` with `expect.poll`  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6562](https://redirect.github.com/vitest-dev/vitest/issues/6562) [<samp>(f7da6)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f7da6199)
-   **forks**:
    -   Fix `--cpu-prof` and `--heap-prof` not working by default  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/pull/6555](https://redirect.github.com/vitest-dev/vitest/pull/6555) [<samp>(2e4d894)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/2e4d894)
-   **runner**:
    -   Mark tests as skipped when `beforeAll` failed  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6524](https://redirect.github.com/vitest-dev/vitest/issues/6524) [<samp>(fb797)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/fb79792d)
    -   Support fixture parsing of lowered async syntax  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6531](https://redirect.github.com/vitest-dev/vitest/issues/6531) [<samp>(b553c)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/b553c7d6)
    -   Fix fixture parsing of lowered async syntax for non arrow functions  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6575](https://redirect.github.com/vitest-dev/vitest/issues/6575) [<samp>(3de00)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/3de00ab6)
    -   Guard test hook callback  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6604](https://redirect.github.com/vitest-dev/vitest/issues/6604) [<samp>(14971)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/1497134e)
    -   Run `onTestFinished` and `onTestFailed` during `retry` and `repeats`  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6609](https://redirect.github.com/vitest-dev/vitest/issues/6609) [<samp>(c5e29)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/c5e29098)
-   **ui**:
    -   List tests on ui when `--standalone`  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6577](https://redirect.github.com/vitest-dev/vitest/issues/6577) [<samp>(d0bf8)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d0bf89d3)
-   **vite-node**:
    -   Fix esm false-detection inside comment  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6506](https://redirect.github.com/vitest-dev/vitest/issues/6506) [<samp>(91f85)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/91f85997)
-   **vitest**:
    -   Install dependencies with the same version when prompted  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6611](https://redirect.github.com/vitest-dev/vitest/issues/6611) [<samp>(ed8b7)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/ed8b7c08)
    -   Make env.SSR consistent between different pools  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6616](https://redirect.github.com/vitest-dev/vitest/issues/6616) [<samp>(8a8d3)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/8a8d3f03)
    -   Don't start a websocket server if api is disabled  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6617](https://redirect.github.com/vitest-dev/vitest/issues/6617) [<samp>(82140)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/821400b8)
-   **workspace**:
    -   Fix glob pattern detection  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6502](https://redirect.github.com/vitest-dev/vitest/issues/6502) [<samp>(7727c)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7727ca87)
    -   Ignore DS_Store by default  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6571](https://redirect.github.com/vitest-dev/vitest/issues/6571) [<samp>(d2a86)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d2a86ff5)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.1...v2.1.2)

### [`v2.1.1`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.1.1)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.0...v2.1.1)

#####    🐞 Bug Fixes

-   **browser**:
    -   Make example test callbacks async  -  by [@&#8203;aqandrew](https://redirect.github.com/aqandrew) in [https://github.com/vitest-dev/vitest/issues/6484](https://redirect.github.com/vitest-dev/vitest/issues/6484) [<samp>(16aa7)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/16aa76c2)
    -   Optimize vitest-browser-vue correctly  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6490](https://redirect.github.com/vitest-dev/vitest/issues/6490) [<samp>(5cbb0)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/5cbb0bba)
-   **workspace**:
    -   Resolve glob pattern once to avoid name collision  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6489](https://redirect.github.com/vitest-dev/vitest/issues/6489) [<samp>(36b5a)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/36b5aceb)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.1.0...v2.1.1)

### [`v2.1.0`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.1.0)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.5...v2.1.0)

This release makes another big change to the Browser Mode by introducing [locators API](https://vitest.dev/guide/browser/locators.html):

```ts
test('renders blog posts', async () => {
  const screen = page.render(<Blog />)

  await expect.element(screen.getByRole('heading', { name: 'Blog' })).toBeInTheDocument()

  const [firstPost] = screen.getByRole('listitem').all()

  await firstPost.getByRole('button', { name: 'Delete' }).click()

  expect(screen.getByRole('listitem').all()).toHaveLength(3)
})
```

You can use either [vitest-browser-vue](https://redirect.github.com/vitest-dev/vitest-browser-vue), [vitest-browser-svelte ](https://redirect.github.com/vitest-dev/vitest-browser-svelte) or [vitest-browser-react](https://redirect.github.com/vitest-dev/vitest-browser-react) to render components and make assertions using locators. Locators are also available on the `page` object from `@vitest/browser/context`.

#####    🚀 Features

-   **api**:
    -   Make spec into a class instead of a tuple  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6355](https://redirect.github.com/vitest-dev/vitest/issues/6355) [<samp>(874a1)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/874a121e)
-   **browser**:
    -   Move page.config to server.config, add more docs  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6252](https://redirect.github.com/vitest-dev/vitest/issues/6252) [<samp>(af2b8)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/af2b813c)
    -   Make iframe scalable, improve documentation  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6257](https://redirect.github.com/vitest-dev/vitest/issues/6257) [<samp>(74ca1)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/74ca11a4)
    -   Introduce built-in locators  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6084](https://redirect.github.com/vitest-dev/vitest/issues/6084) [<samp>(3347f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/3347f83e)
    -   Support v8 coverage  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6273](https://redirect.github.com/vitest-dev/vitest/issues/6273) [<samp>(34199)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/34199bdf)
    -   Support `userEvent.upload` in playwright provider  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6442](https://redirect.github.com/vitest-dev/vitest/issues/6442) [<samp>(cf148)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/cf148645)
    -   Support `--inspect`  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6433](https://redirect.github.com/vitest-dev/vitest/issues/6433) [<samp>(0499a)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0499a315)
    -   Support `--inspect-brk`  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6434](https://redirect.github.com/vitest-dev/vitest/issues/6434) [<samp>(7ab0f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7ab0f4a8)
-   **cli**:
    -   Extend existing list command to output only a list of file names  -  by [@&#8203;Ma-hawaj](https://redirect.github.com/Ma-hawaj) and [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6392](https://redirect.github.com/vitest-dev/vitest/issues/6392) [<samp>(008f0)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/008f00b2)
-   **coverage**:
    -   Add `--exclude-after-remap`  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6309](https://redirect.github.com/vitest-dev/vitest/issues/6309) [<samp>(5932a)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/5932a7f9)
-   **mocker**:
    -   Introduce [@&#8203;vitest/mocker](https://redirect.github.com/vitest/mocker) package, allow `{ spy: true }` instead of a factory  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6289](https://redirect.github.com/vitest-dev/vitest/issues/6289) [<samp>(95f02)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/95f0203f)
-   **vitest**:
    -   Add "provide" option  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6253](https://redirect.github.com/vitest-dev/vitest/issues/6253) [<samp>(4409d)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/4409d779)
    -   Add return type and promisable mockFactory  -  by [@&#8203;syi0808](https://redirect.github.com/syi0808) and [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6139](https://redirect.github.com/vitest-dev/vitest/issues/6139) [<samp>(f5e0b)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f5e0b987)
    -   Add `vi.advanceTimersToNextFrame`  -  by [@&#8203;bnjm](https://redirect.github.com/bnjm) and [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6347](https://redirect.github.com/vitest-dev/vitest/issues/6347) [<samp>(8ff63)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/8ff63560)
    -   Allow env to be stubbed to undefined  -  by [@&#8203;JSanchezIO](https://redirect.github.com/JSanchezIO) and [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6359](https://redirect.github.com/vitest-dev/vitest/issues/6359) [<samp>(c3b27)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/c3b2757c)

#####    🐞 Bug Fixes

-   Correctly resolve nested mocks with `index` file  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6266](https://redirect.github.com/vitest-dev/vitest/issues/6266) [<samp>(081cf)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/081cfe03)
-   Don't panic when coverage.reporter is a string  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6267](https://redirect.github.com/vitest-dev/vitest/issues/6267) [<samp>(7b37d)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7b37d27b)
-   Align RawMatcherFn type definition with Jest  -  by [@&#8203;wheresrhys](https://redirect.github.com/wheresrhys) in [https://github.com/vitest-dev/vitest/issues/6351](https://redirect.github.com/vitest-dev/vitest/issues/6351) [<samp>(d09f0)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d09f00c7)
-   Cjs build of vite node server  -  by [@&#8203;AkaraChen](https://redirect.github.com/AkaraChen) in [https://github.com/vitest-dev/vitest/issues/6389](https://redirect.github.com/vitest-dev/vitest/issues/6389) [<samp>(12e70)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/12e702bd)
-   Allow inlining vite's cached dependencies  -  by [@&#8203;chriswheeldon-peakon](https://redirect.github.com/chriswheeldon-peakon) in [https://github.com/vitest-dev/vitest/issues/6284](https://redirect.github.com/vitest-dev/vitest/issues/6284) [<samp>(03208)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/03208017)
-   Print unexpected error message if peer dependencies have a different version  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6446](https://redirect.github.com/vitest-dev/vitest/issues/6446) [<samp>(b992b)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/b992b346)
-   Ignore importer when resolving Vitest  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6469](https://redirect.github.com/vitest-dev/vitest/issues/6469) [<samp>(0b447)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0b447226)
-   `expect.getState().testPath` always returns correct path  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6472](https://redirect.github.com/vitest-dev/vitest/issues/6472) [<samp>(ac698)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/ac698b1c)
-   UserEvent works consistently between providers  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6480](https://redirect.github.com/vitest-dev/vitest/issues/6480) [<samp>(0b4da)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0b4da69e)
-   **browser**:
    -   Print correct stack trace for unhandled errors  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6134](https://redirect.github.com/vitest-dev/vitest/issues/6134) [<samp>(1da6c)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/1da6cebe)
    -   Use documentElement as the root for selector  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) [<samp>(d8077)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d807767f)
    -   Keep querying elements even if locator is created with elementLocator, add pubic @&#8203;vitest/browser/utils  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6296](https://redirect.github.com/vitest-dev/vitest/issues/6296) [<samp>(30dc5)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/30dc5793)
    -   Produce valid config file if preview provider is used  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6305](https://redirect.github.com/vitest-dev/vitest/issues/6305) [<samp>(7f0ae)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7f0ae292)
    -   Correctly run in-source tests in the browser  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6440](https://redirect.github.com/vitest-dev/vitest/issues/6440) [<samp>(c8531)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/c853126e)
    -   Exclude missed packages from optimization, print help message  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6445](https://redirect.github.com/vitest-dev/vitest/issues/6445) [<samp>(8d883)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/8d883cf0)
    -   Define mocker as a dependency  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6476](https://redirect.github.com/vitest-dev/vitest/issues/6476) [<samp>(9560a)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/9560ab7f)
-   **coverage**:
    -   Warn if `vitest` and `@vitest/*` versions don't match  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6317](https://redirect.github.com/vitest-dev/vitest/issues/6317) [<samp>(e662c)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e662c7b2)
    -   V8 to support source maps with multiple sources  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) and [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6120](https://redirect.github.com/vitest-dev/vitest/issues/6120) [<samp>(1f6cb)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/1f6cb59f)
    -   V8 to warn instead of crash when conversion fails  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6318](https://redirect.github.com/vitest-dev/vitest/issues/6318) [<samp>(91dea)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/91dea8c1)
    -   Use project specific `vitenode` for uncovered files  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6044](https://redirect.github.com/vitest-dev/vitest/issues/6044) [<samp>(da52d)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/da52d23f)
-   **runner**:
    -   Use `performance.now` instead of `Date.now` for duration  -  by [@&#8203;LuciNyan](https://redirect.github.com/LuciNyan) in [https://github.com/vitest-dev/vitest/issues/6382](https://redirect.github.com/vitest-dev/vitest/issues/6382) [<samp>(fe489)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/fe489432)
    -   Async assertion auto await should timeout  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6391](https://redirect.github.com/vitest-dev/vitest/issues/6391) [<samp>(ad6e7)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/ad6e72fc)
-   **snapshot**:
    -   Reject multiple `toMatchInlineSnapshot` updates at the same location  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6332](https://redirect.github.com/vitest-dev/vitest/issues/6332) [<samp>(1606f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/1606f34f)
    -   Improve inline snapshot inside loop rejection  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6339](https://redirect.github.com/vitest-dev/vitest/issues/6339) [<samp>(e0368)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e03683c5)
-   **typecheck**:
    -   Run both runtime and typecheck tests if `typecheck.include` overlaps with `include`  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6256](https://redirect.github.com/vitest-dev/vitest/issues/6256) [<samp>(153ff)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/153ff01b)
-   **types**:
    -   Allow Callbacks Passed to before\*/after\* to Return Anything  -  by [@&#8203;LuciNyan](https://redirect.github.com/LuciNyan) in [https://github.com/vitest-dev/vitest/issues/6393](https://redirect.github.com/vitest-dev/vitest/issues/6393) [<samp>(f6217)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f6217a22)
-   **ui**:
    -   Remove "filters" flickering  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6463](https://redirect.github.com/vitest-dev/vitest/issues/6463) [<samp>(0223b)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0223bb79)
    -   Render project name consistently  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6329](https://redirect.github.com/vitest-dev/vitest/issues/6329) [<samp>(94a18)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/94a186ec)
-   **vite-node**:
    -   Disable watcher if hmr is disabled  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6251](https://redirect.github.com/vitest-dev/vitest/issues/6251) [<samp>(c51c6)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/c51c67aa)
    -   Fix watch on vite 6  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6422](https://redirect.github.com/vitest-dev/vitest/issues/6422) [<samp>(c3ac4)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/c3ac43c1)
-   **vitest**:
    -   Update json reporter output  -  by [@&#8203;Emiyaaaaa](https://redirect.github.com/Emiyaaaaa) in [https://github.com/vitest-dev/vitest/issues/6064](https://redirect.github.com/vitest-dev/vitest/issues/6064) [<samp>(c9979)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/c997937b)
    -   Add more type guards for --merge-reports  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6307](https://redirect.github.com/vitest-dev/vitest/issues/6307) [<samp>(0a5d8)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0a5d8169)
    -   Always resolve vitest to the root version  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6369](https://redirect.github.com/vitest-dev/vitest/issues/6369) [<samp>(163d7)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/163d7624)
    -   Dispose vmForks listeners to avoid memory leak  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6448](https://redirect.github.com/vitest-dev/vitest/issues/6448) [<samp>(2673c)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/2673c3bb)
-   **workspace**:
    -   Correctly resolve workspace globs and file paths  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6316](https://redirect.github.com/vitest-dev/vitest/issues/6316) [<samp>(afdcb)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/afdcb8f2)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.5...v2.1.0)

### [`v2.0.5`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.0.5)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5)

#####    🚀 Features

-   Introduce experimental reported tasks  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6149](https://redirect.github.com/vitest-dev/vitest/issues/6149) [<samp>(13d85)</samp>](https://redirect.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 [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6191](https://redirect.github.com/vitest-dev/vitest/issues/6191) [<samp>(29176)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/291766d7)
-   `testNamePattern` adds leading space  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6186](https://redirect.github.com/vitest-dev/vitest/issues/6186) [<samp>(073a5)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/073a50c9)
-   **browser**:
    -   Don't bundle `afterEach` cleanup hooks in node entrypoint  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6192](https://redirect.github.com/vitest-dev/vitest/issues/6192) [<samp>(e6fbc)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e6fbc620)
    -   UserEvent.setup initiates a separate state for userEvent instance  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6088](https://redirect.github.com/vitest-dev/vitest/issues/6088) [<samp>(883f3)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/883f3482)
    -   Correctly import optimized module in vi.importActual  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6219](https://redirect.github.com/vitest-dev/vitest/issues/6219) [<samp>(804ff)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/804ff2fd)
    -   Passing options to hover/unhover  -  by [@&#8203;MNeverOff](https://redirect.github.com/MNeverOff) in [https://github.com/vitest-dev/vitest/issues/6175](https://redirect.github.com/vitest-dev/vitest/issues/6175) [<samp>(d4c00)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/d4c005bc)
    -   Improve unique CSS selector generation  -  by [@&#8203;zacharyvoase](https://redirect.github.com/zacharyvoase) and **Zack Voase** in [https://github.com/vitest-dev/vitest/issues/6243](https://redirect.github.com/vitest-dev/vitest/issues/6243) [<samp>(e7acd)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e7acd0cf)
-   **vitest**:
    -   Remove nuxt from auto inline deps  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) [<samp>(93882)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/93882f38)
    -   Improve `defineProject` and `defineWorkspace` types  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6198](https://redirect.github.com/vitest-dev/vitest/issues/6198) [<samp>(8cd82)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/8cd8272b)
    -   Correctly resolve mocked `node:*` imports in `__mocks__` folder  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6204](https://redirect.github.com/vitest-dev/vitest/issues/6204) [<samp>(a48be)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/a48be6ff)
-   **web-worker**:
    -   Expose globals on self  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6170](https://redirect.github.com/vitest-dev/vitest/issues/6170) [<samp>(12bb5)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/12bb567e)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5)

### [`v2.0.4`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.0.4)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4)

#####    🐞 Bug Fixes

-   One-line environment options  -  by [@&#8203;hahanein](https://redirect.github.com/hahanein) in [https://github.com/vitest-dev/vitest/issues/5105](https://redirect.github.com/vitest-dev/vitest/issues/5105) [<samp>(38269)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/38269415)
-   Resolve assets imported with `require`  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6159](https://redirect.github.com/vitest-dev/vitest/issues/6159) [<samp>(807a2)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/807a2cbc)
-   **browser**:
    -   Don't panic if [@&#8203;vitest/browser](https://redirect.github.com/vitest/browser) is installed outside of project root  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6135](https://redirect.github.com/vitest-dev/vitest/issues/6135) [<samp>(ccfcd)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/ccfcd488)
    -   Set global filepath  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6190](https://redirect.github.com/vitest-dev/vitest/issues/6190) [<samp>(0d0b4)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/0d0b46b1)
    -   Allow preview and open in the editor screenshot error from ui  -  by [@&#8203;userquin](https://redirect.github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6113](https://redirect.github.com/vitest-dev/vitest/issues/6113) [<samp>(2d620)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/2d62051f)
-   **coverage**:
    -   Global thresholds to include files from glob thresholds  -  by [@&#8203;thor-juhasz](https://redirect.github.com/thor-juhasz) and [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6172](https://redirect.github.com/vitest-dev/vitest/issues/6172) [<samp>(02e3f)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/02e3f003)
    -   Consistent type-only file handling  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6183](https://redirect.github.com/vitest-dev/vitest/issues/6183) [<samp>(90576)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/90576148)
    -   Ignore `*.cts` files  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6189](https://redirect.github.com/vitest-dev/vitest/issues/6189) [<samp>(5da45)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/5da45db1)
    -   Add `thresholds.<glob>.100` option  -  by [@&#8203;thor-juhasz](https://redirect.github.com/thor-juhasz) and [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6174](https://redirect.github.com/vitest-dev/vitest/issues/6174) [<samp>(f6845)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f68453f8)
-   **spy**:
    -   Fix `mockImplementation` for function overload and unions  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6181](https://redirect.github.com/vitest-dev/vitest/issues/6181) [<samp>(7a75b)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/7a75bd4c)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4)

### [`v2.0.3`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v2.0.3)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3)

#####    🚀 Features

-   **ui**: Show all suites/tests when parent matches  -  by [@&#8203;userquin](https://redirect.github.com/userquin) in [https://github.com/vitest-dev/vitest/issues/6106](https://redirect.github.com/vitest-dev/vitest/issues/6106) [<samp>(840e0)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/840e02f1)

#####    🐞 Bug Fixes

-   `--inspect-brk` stop on Windows  -  by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/6110](https://redirect.github.com/vitest-dev/vitest/issues/6110) [<samp>(f8519)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f851982e)
-   **browser**:
    -   Don't import from "vite"  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) [<samp>(35655)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/35655419)
    -   Allow immidiate reinvalidation of mocked dependencies  -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/6108](https://redirect.github.com/vitest-dev/vitest/issues/6108) [<samp>(f44cc)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/f44cc917)
-   **spy**:
    -   Fix type error when assigning `vi.spyOn` to `MockInstance` of function overload  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/6086](https://redirect.github.com/vitest-dev/vitest/issues/6086) [<samp>(e9f9a)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/e9f9adcd)
-   **vite-node**:
    -   Remove suffix slash on file protocol for window  -  by [@&#8203;syi0808](https://redirect.github.com/syi0808) in [https://github.com/vitest-dev/vitest/issues/6109](https://redirect.github.com/vitest-dev/vitest/issues/6109) [<samp>(93ebd)</samp>](https://redirect.github.com/vitest-dev/vitest/commit/93ebdefc)

#####     [View changes on GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.2...v2.0.3)

### [`v2.0.2`](https://redirect.github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2)

[Compare Source](https://redirect.github.com/vitest-dev/vitest/com

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone Europe/Berlin, 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.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/mheob/used-pm).
  • Loading branch information
renovate[bot] authored Nov 17, 2024
1 parent a491f02 commit bb4437b
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 282 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@mheob/prettier-config": "^3.2.0",
"@mheob/tsconfig": "^2.0.0",
"@types/node": "^20.11.20",
"@vitest/coverage-v8": "^1.3.1",
"@vitest/coverage-v8": "^2.1.5",
"commitizen": "^4.3.0",
"concurrently": "^9.1.0",
"cz-git": "^1.8.0",
Expand All @@ -67,7 +67,7 @@
"prettier": "^3.2.5",
"rimraf": "^6.0.0",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
"vitest": "^2.1.5"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit bb4437b

Please sign in to comment.