chore(deps): update dependency vitest to v2 - autoclosed #35

Closed
Renovate [BOT] wants to merge 1 commits from renovate/vitest-2.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
vitest (source) devDependencies major ^1 -> ^2.0.0

Release Notes

vitest-dev/vitest (vitest)

v2.1.8

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v2.1.7

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v2.1.6

Compare Source

🚀 Features
  • Support Vite 6
    View changes on GitHub

v2.1.5

Compare Source

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v2.1.4

Compare Source

   🚀 Features

This patch release includes a non-breaking feature for the experimental Browser Mode that doesn't follow SemVer. If you want to avoid picking up releases like this, make sure to pin the Vitest version in your package.json. See npm's documentation about semver for more information.

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v2.1.3

Compare Source

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v2.1.2

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v2.1.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v2.1.0

Compare Source

This release makes another big change to the Browser Mode by introducing locators API:

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, vitest-browser-svelte or vitest-browser-react to render components and make assertions using locators. Locators are also available on the page object from @vitest/browser/context.

Potential Breaking Change
  • workspace:
    • Correctly resolve workspace globs and file paths  -  by @​sheremet-va in https://github.com/vitest-dev/vitest/issues/6316 (afdcb)
    • This changes how the custom glob pattern in the workspace config is treated. Any file matching the glob is considered a Vitest config file. Any folder matching the glob pattern is treated as a workspace project and is subject to the regular config resolution (single vitest.config.ts or vite.config.ts inside the folder)
    • For example, projects/* will match anything inside the projects folder. If it's a folder, we try to find the config inside that folder (if there is none, it is still treated as a project with the default config). If it's a file, it will be treated as a Vitest config. projects/**/* previously would assume that you only wanted to have folders as projects, but now it will match every single file insideprojects.
    • This change doesn't affect non-glob usage.
   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v2.0.5

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v2.0.4

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v2.0.3

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v2.0.2

Compare Source

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v2.0.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v2.0.0

Compare Source

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.

🚨 Breaking Changes
🚀 Features
Running tresjs example in Vitest BrowserMode
🐞 Bug Fixes
View changes on GitHub

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [vitest](https://github.com/vitest-dev/vitest) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | devDependencies | major | [`^1` -> `^2.0.0`](https://renovatebot.com/diffs/npm/vitest/1.6.0/2.1.8) | --- ### Release Notes <details> <summary>vitest-dev/vitest (vitest)</summary> ### [`v2.1.8`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.8) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.1.7...v2.1.8) #####    🐞 Bug Fixes - Support Node 21  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(92f7a)</samp>](https://github.com/vitest-dev/vitest/commit/92f7a2ad) #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.7...v2.1.8) ### [`v2.1.7`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.7) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.1.6...v2.1.7) #####    🐞 Bug Fixes - Revert support for Vite 6  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(fbe5c)</samp>](https://github.com/vitest-dev/vitest/commit/fbe5c39d) - This introduced some breaking changes (https://github.com/vitest-dev/vitest/issues/6992). We will enable support for it later. In the meantime, you can still use `pnpm.overrides` or yarn resolutions to override the `vite` version in the `vitest` package - the APIs are compatible. #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.6...v2.1.7) ### [`v2.1.6`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.6) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.1.5...v2.1.6) ##### 🚀 Features - Support Vite 6 #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.5...v2.1.6) ### [`v2.1.5`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.5) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.1.4...v2.1.5) #####    🐞 Bug Fixes - `dangerouslyIgnoreUnhandledErrors` without base reporter  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6808 [<samp>(0bf0a)</samp>](https://github.com/vitest-dev/vitest/commit/0bf0ab00) - Capture `unhandledRejection` even when base reporter is not used  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6812 [<samp>(8878b)</samp>](https://github.com/vitest-dev/vitest/commit/8878b04d) - Don't change the working directory when loading workspace projects  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6811 [<samp>(f0aea)</samp>](https://github.com/vitest-dev/vitest/commit/f0aeaca8) - Remove `sequence.concurrent` from the `RuntimeConfig` type  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6880 [<samp>(6af73)</samp>](https://github.com/vitest-dev/vitest/commit/6af73d93) - Stop the runner before restarting, restart on workspace config change  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6859 [<samp>(b01df)</samp>](https://github.com/vitest-dev/vitest/commit/b01df47d) - Don't rerun on Esc or Ctrl-C during watch filter  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6895 [<samp>(98f76)</samp>](https://github.com/vitest-dev/vitest/commit/98f76ea7) - Print ssrTransform error  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6885 [<samp>(4c96c)</samp>](https://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://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6877 [<samp>(93b67)</samp>](https://github.com/vitest-dev/vitest/commit/93b67c24) - **browser**: - Don't process the default css styles  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6861 [<samp>(0d67f)</samp>](https://github.com/vitest-dev/vitest/commit/0d67f04b) - Support non US key input  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6873 [<samp>(5969d)</samp>](https://github.com/vitest-dev/vitest/commit/5969d8da) - Stop the browser rpc when the pool is closed  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6858 [<samp>(9a0c9)</samp>](https://github.com/vitest-dev/vitest/commit/9a0c93d7) - Init browsers eagerly when tests are running  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6876 [<samp>(417bd)</samp>](https://github.com/vitest-dev/vitest/commit/417bdb42) - **coverage**: - Report uncovered files when re-run by `enter` or `'a'`  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6848 [<samp>(487c8)</samp>](https://github.com/vitest-dev/vitest/commit/487c80ae) - **ui**: - Remove crossorigin attributes for same origin assets  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6883 [<samp>(6e793)</samp>](https://github.com/vitest-dev/vitest/commit/6e793c64) - **vite-node**: - Improve esm check to decide external  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6816 [<samp>(7e1fa)</samp>](https://github.com/vitest-dev/vitest/commit/7e1faf3d) - Top-level throw in module is not reported properly  -  by [@&#8203;vanaigr](https://github.com/vanaigr) and [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6840 [<samp>(cf0cb)</samp>](https://github.com/vitest-dev/vitest/commit/cf0cbf6a) - **vitest**: - Use fetch() implementation from happy-dom  -  by [@&#8203;capricorn86](https://github.com/capricorn86) in https://github.com/vitest-dev/vitest/issues/6879 [<samp>(3c56f)</samp>](https://github.com/vitest-dev/vitest/commit/3c56feb4) #####    🏎 Performance - Limit workspace project concurrency to available cores  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6869 [<samp>(f4c04)</samp>](https://github.com/vitest-dev/vitest/commit/f4c04ab6) #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.4...v2.1.5) ### [`v2.1.4`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.4) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.1.3...v2.1.4) #####    🚀 Features *This patch release includes a non-breaking feature for the experimental Browser Mode that doesn't follow SemVer. If you want to avoid picking up releases like this, make sure to pin the Vitest version in your `package.json`. See npm's documentation about [semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more information.* - **browser**: Allow custom HTML path, respect plugins `transformIndexHtml`  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6725 [<samp>(16902)</samp>](https://github.com/vitest-dev/vitest/commit/169028f0) #####    🐞 Bug Fixes - **windows**: - Don't normalize drive case letter in root  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6792 [<samp>(b28cd)</samp>](https://github.com/vitest-dev/vitest/commit/b28cd2e3) - **browser**: - Fix default browser port  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6700 [<samp>(9c518)</samp>](https://github.com/vitest-dev/vitest/commit/9c518c14) - Optimize expect-type  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6713 [<samp>(07918)</samp>](https://github.com/vitest-dev/vitest/commit/07918538) - Don't polyfill process.env  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6718 [<samp>(da6d2)</samp>](https://github.com/vitest-dev/vitest/commit/da6d2ea7) - Increment browser port automatically if there are several projects with browser.enabled  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6717 [<samp>(a9397)</samp>](https://github.com/vitest-dev/vitest/commit/a939779f) - Cleanup keyboard state  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6731 [<samp>(19278)</samp>](https://github.com/vitest-dev/vitest/commit/19278f4c) - Don't add `v=` queries to setup files imports  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6759 [<samp>(b8258)</samp>](https://github.com/vitest-dev/vitest/commit/b82584c9) - User event cleanup on retry  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6764 [<samp>(bdd15)</samp>](https://github.com/vitest-dev/vitest/commit/bdd15dd1) - Ignore non mocked msw requests  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6770 [<samp>(9d9ba)</samp>](https://github.com/vitest-dev/vitest/commit/9d9bad5b) - Initiate MSW in the same frame as tests  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6772 [<samp>(2444f)</samp>](https://github.com/vitest-dev/vitest/commit/2444ff22) - **deps**: - Update dependency sirv to v3  -  in https://github.com/vitest-dev/vitest/issues/6701 [<samp>(fde5d)</samp>](https://github.com/vitest-dev/vitest/commit/fde5d509) - **expect**: - Correct behavior of `toThrowError` with empty string parameter  -  by [@&#8203;shulaoda](https://github.com/shulaoda) in https://github.com/vitest-dev/vitest/issues/6710 [<samp>(a6129)</samp>](https://github.com/vitest-dev/vitest/commit/a61293e9) - **mocker**: - Remove spy from peer dependencies  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6777 [<samp>(3a8b5)</samp>](https://github.com/vitest-dev/vitest/commit/3a8b56bf) - **vitest**: - Clarify slowTestThreshold, print slow tests in non-TTY mode  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6715 [<samp>(2e6aa)</samp>](https://github.com/vitest-dev/vitest/commit/2e6aa647) - Print warnings form Vite plugins  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6724 [<samp>(121b1)</samp>](https://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://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6779 [<samp>(df6d7)</samp>](https://github.com/vitest-dev/vitest/commit/df6d750b) - Silence import analysis warning  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6785 [<samp>(39041)</samp>](https://github.com/vitest-dev/vitest/commit/39041ee5) - **vitest,runner**: - Simplify `test.extend` type exports  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6707 [<samp>(e5c38)</samp>](https://github.com/vitest-dev/vitest/commit/e5c388f0) #####    🏎 Performance - Use `hash` to replace `createHash`  -  by [@&#8203;btea](https://github.com/btea) in https://github.com/vitest-dev/vitest/issues/6703 [<samp>(5d07b)</samp>](https://github.com/vitest-dev/vitest/commit/5d07bba6) #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.3...v2.1.4) ### [`v2.1.3`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.3) [Compare Source](https://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://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6697 [<samp>(e0027)</samp>](https://github.com/vitest-dev/vitest/commit/e002758c) - **browser**: - Provide aria role intellisense  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6629 [<samp>(f36ea)</samp>](https://github.com/vitest-dev/vitest/commit/f36eac77) - Not.toBeInTheDocument works with locators API  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6634 [<samp>(8bef5)</samp>](https://github.com/vitest-dev/vitest/commit/8bef5d2b) - Use `/mockServiceWorker.js` instead of `/__vitest_msw__`  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6687 [<samp>(4b2ce)</samp>](https://github.com/vitest-dev/vitest/commit/4b2ce07f) - Don't override the esbuild option in the browser mode  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6692 [<samp>(d131f)</samp>](https://github.com/vitest-dev/vitest/commit/d131fd64) - **expect**: - Preserve prototype in `toMatchObject` diff  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6620 [<samp>(d289e)</samp>](https://github.com/vitest-dev/vitest/commit/d289e7eb) - **mocker**: - Specify correct spy dependency  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(7e958)</samp>](https://github.com/vitest-dev/vitest/commit/7e9584aa) - **runner**: - Ensure sequential suite overrides sequence.concurrent  -  by [@&#8203;dsyddall](https://github.com/dsyddall) and [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6653 [<samp>(5e6de)</samp>](https://github.com/vitest-dev/vitest/commit/5e6de274) - **vitest**: - Deprecate UserConfig in favor of ViteUserConfig  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6626 [<samp>(496bd)</samp>](https://github.com/vitest-dev/vitest/commit/496bd251) - Don't hang with maxConcurrency 0  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6627 [<samp>(946d8)</samp>](https://github.com/vitest-dev/vitest/commit/946d8bb1) - Deprecate old task types and node-reliant types  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6632 [<samp>(00045)</samp>](https://github.com/vitest-dev/vitest/commit/000459a9) - Fix `<empty line>` logs when interleaving `console.log/error`  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6644 [<samp>(9ece3)</samp>](https://github.com/vitest-dev/vitest/commit/9ece3952) - Show rollup error details as test error  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6686 [<samp>(47dde)</samp>](https://github.com/vitest-dev/vitest/commit/47dde76f) - Always inline setup files  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6689 [<samp>(19d64)</samp>](https://github.com/vitest-dev/vitest/commit/19d64e20) - Use `fast-glob` instead of `tinyglobby` in Vitest  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6688 [<samp>(70baa)</samp>](https://github.com/vitest-dev/vitest/commit/70baaaa9) - **web-worker**: - Share mocker with main executor  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6623 [<samp>(fe7b8)</samp>](https://github.com/vitest-dev/vitest/commit/fe7b8aee) #####    🏎 Performance - Reuse full name in reported tasks, update generator types  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6666 [<samp>(7a0de)</samp>](https://github.com/vitest-dev/vitest/commit/7a0de0a7) #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.2...v2.1.3) ### [`v2.1.2`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.2) [Compare Source](https://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://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6584 [<samp>(e7f35)</samp>](https://github.com/vitest-dev/vitest/commit/e7f35214) - **benchmark**: - Clear `BenchmarkResult.samples` array to reduce memory usage  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) and [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6541 [<samp>(a6407)</samp>](https://github.com/vitest-dev/vitest/commit/a6407afc) - **browser**: - Fix dynamic import inside worker  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6569 [<samp>(ea2d4)</samp>](https://github.com/vitest-dev/vitest/commit/ea2d429b) - Fix browser mock factory event race condition  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6530 [<samp>(f131f)</samp>](https://github.com/vitest-dev/vitest/commit/f131f93b) - Serve ui assets as static  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6564 [<samp>(adcda)</samp>](https://github.com/vitest-dev/vitest/commit/adcdaee8) - Update solidjs testing library lib  -  by [@&#8203;CamilleTeruel](https://github.com/CamilleTeruel) in https://github.com/vitest-dev/vitest/issues/6548 [<samp>(91442)</samp>](https://github.com/vitest-dev/vitest/commit/91442dfc) - Use `data:` protocol on preview provider file upload  -  by [@&#8203;userquin](https://github.com/userquin) in https://github.com/vitest-dev/vitest/issues/6501 [<samp>(e9821)</samp>](https://github.com/vitest-dev/vitest/commit/e9821f70) - Fix base for client script  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6510 [<samp>(f9528)</samp>](https://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://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6570 [<samp>(383f1)</samp>](https://github.com/vitest-dev/vitest/commit/383f1791) - **coverage**: - Remove empty coverage folder on test failure too  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6547 [<samp>(1371c)</samp>](https://github.com/vitest-dev/vitest/commit/1371ca6a) - Include `*.astro` by default  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6565 [<samp>(f8ff7)</samp>](https://github.com/vitest-dev/vitest/commit/f8ff76a9) - `cleanOnRerun: false` to invalidate previous results  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6592 [<samp>(88bde)</samp>](https://github.com/vitest-dev/vitest/commit/88bde99c) - **expect**: - Fix `toBeDefined` with `expect.poll`  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6562 [<samp>(f7da6)</samp>](https://github.com/vitest-dev/vitest/commit/f7da6199) - **forks**: - Fix `--cpu-prof` and `--heap-prof` not working by default  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/pull/6555 [<samp>(2e4d894)</samp>](https://github.com/vitest-dev/vitest/commit/2e4d894) - **runner**: - Mark tests as skipped when `beforeAll` failed  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6524 [<samp>(fb797)</samp>](https://github.com/vitest-dev/vitest/commit/fb79792d) - Support fixture parsing of lowered async syntax  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6531 [<samp>(b553c)</samp>](https://github.com/vitest-dev/vitest/commit/b553c7d6) - Fix fixture parsing of lowered async syntax for non arrow functions  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6575 [<samp>(3de00)</samp>](https://github.com/vitest-dev/vitest/commit/3de00ab6) - Guard test hook callback  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6604 [<samp>(14971)</samp>](https://github.com/vitest-dev/vitest/commit/1497134e) - Run `onTestFinished` and `onTestFailed` during `retry` and `repeats`  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6609 [<samp>(c5e29)</samp>](https://github.com/vitest-dev/vitest/commit/c5e29098) - **ui**: - List tests on ui when `--standalone`  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6577 [<samp>(d0bf8)</samp>](https://github.com/vitest-dev/vitest/commit/d0bf89d3) - **vite-node**: - Fix esm false-detection inside comment  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6506 [<samp>(91f85)</samp>](https://github.com/vitest-dev/vitest/commit/91f85997) - **vitest**: - Install dependencies with the same version when prompted  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6611 [<samp>(ed8b7)</samp>](https://github.com/vitest-dev/vitest/commit/ed8b7c08) - Make env.SSR consistent between different pools  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6616 [<samp>(8a8d3)</samp>](https://github.com/vitest-dev/vitest/commit/8a8d3f03) - Don't start a websocket server if api is disabled  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6617 [<samp>(82140)</samp>](https://github.com/vitest-dev/vitest/commit/821400b8) - **workspace**: - Fix glob pattern detection  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6502 [<samp>(7727c)</samp>](https://github.com/vitest-dev/vitest/commit/7727ca87) - Ignore DS_Store by default  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6571 [<samp>(d2a86)</samp>](https://github.com/vitest-dev/vitest/commit/d2a86ff5) #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.1...v2.1.2) ### [`v2.1.1`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.1) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.1.0...v2.1.1) #####    🐞 Bug Fixes - **browser**: - Make example test callbacks async  -  by [@&#8203;aqandrew](https://github.com/aqandrew) in https://github.com/vitest-dev/vitest/issues/6484 [<samp>(16aa7)</samp>](https://github.com/vitest-dev/vitest/commit/16aa76c2) - Optimize vitest-browser-vue correctly  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6490 [<samp>(5cbb0)</samp>](https://github.com/vitest-dev/vitest/commit/5cbb0bba) - **workspace**: - Resolve glob pattern once to avoid name collision  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6489 [<samp>(36b5a)</samp>](https://github.com/vitest-dev/vitest/commit/36b5aceb) #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.0...v2.1.1) ### [`v2.1.0`](https://github.com/vitest-dev/vitest/releases/tag/v2.1.0) [Compare Source](https://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://github.com/vitest-dev/vitest-browser-vue), [vitest-browser-svelte ](https://github.com/vitest-dev/vitest-browser-svelte) or [vitest-browser-react](https://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`. ##### Potential Breaking Change - **workspace**: - Correctly resolve workspace globs and file paths  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6316 [<samp>(afdcb)</samp>](https://github.com/vitest-dev/vitest/commit/afdcb8f2) - This changes how the custom glob pattern in the workspace config is treated. *Any* file matching the glob is considered a Vitest config file. Any folder matching the glob pattern is treated as a workspace project and is subject to the regular config resolution (single `vitest.config.ts` or `vite.config.ts` inside the folder) - For example, `projects/*` will match anything inside the `projects` folder. If it's a folder, we try to find the config inside that folder (if there is none, it is still treated as a project with the default config). If it's a file, it will be treated as a Vitest config. `projects/**/*` previously would assume that you only wanted to have folders as projects, but now it will match *every single file* inside`projects`. - This change doesn't affect non-glob usage. #####    🚀 Features - **api**: - Make spec into a class instead of a tuple  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6355 [<samp>(874a1)</samp>](https://github.com/vitest-dev/vitest/commit/874a121e) - **browser**: - Move page.config to server.config, add more docs  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6252 [<samp>(af2b8)</samp>](https://github.com/vitest-dev/vitest/commit/af2b813c) - Make iframe scalable, improve documentation  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6257 [<samp>(74ca1)</samp>](https://github.com/vitest-dev/vitest/commit/74ca11a4) - Introduce built-in locators  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6084 [<samp>(3347f)</samp>](https://github.com/vitest-dev/vitest/commit/3347f83e) - Support v8 coverage  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6273 [<samp>(34199)</samp>](https://github.com/vitest-dev/vitest/commit/34199bdf) - Support `userEvent.upload` in playwright provider  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6442 [<samp>(cf148)</samp>](https://github.com/vitest-dev/vitest/commit/cf148645) - Support `--inspect`  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6433 [<samp>(0499a)</samp>](https://github.com/vitest-dev/vitest/commit/0499a315) - Support `--inspect-brk`  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6434 [<samp>(7ab0f)</samp>](https://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://github.com/Ma-hawaj) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6392 [<samp>(008f0)</samp>](https://github.com/vitest-dev/vitest/commit/008f00b2) - **coverage**: - Add `--exclude-after-remap`  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6309 [<samp>(5932a)</samp>](https://github.com/vitest-dev/vitest/commit/5932a7f9) - **mocker**: - Introduce [@&#8203;vitest/mocker](https://github.com/vitest/mocker) package, allow `{ spy: true }` instead of a factory  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6289 [<samp>(95f02)</samp>](https://github.com/vitest-dev/vitest/commit/95f0203f) - **vitest**: - Add "provide" option  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6253 [<samp>(4409d)</samp>](https://github.com/vitest-dev/vitest/commit/4409d779) - Add return type and promisable mockFactory  -  by [@&#8203;syi0808](https://github.com/syi0808) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6139 [<samp>(f5e0b)</samp>](https://github.com/vitest-dev/vitest/commit/f5e0b987) - Add `vi.advanceTimersToNextFrame`  -  by [@&#8203;bnjm](https://github.com/bnjm) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6347 [<samp>(8ff63)</samp>](https://github.com/vitest-dev/vitest/commit/8ff63560) - Allow env to be stubbed to undefined  -  by [@&#8203;JSanchezIO](https://github.com/JSanchezIO) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6359 [<samp>(c3b27)</samp>](https://github.com/vitest-dev/vitest/commit/c3b2757c) - Migrate from `fast-glob` to `tinyglobby`  -  by [@&#8203;SuperchupuDev](https://github.com/SuperchupuDev) in https://github.com/vitest-dev/vitest/pull/6274 [<samp>(c321a)</samp>](https://github.com/vitest-dev/vitest/commit/c321a3fd29902fa9295fe219816381884c40a8cd) #####    🐞 Bug Fixes - Correctly resolve nested mocks with `index` file  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6266 [<samp>(081cf)</samp>](https://github.com/vitest-dev/vitest/commit/081cfe03) - Don't panic when coverage.reporter is a string  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6267 [<samp>(7b37d)</samp>](https://github.com/vitest-dev/vitest/commit/7b37d27b) - Align RawMatcherFn type definition with Jest  -  by [@&#8203;wheresrhys](https://github.com/wheresrhys) in https://github.com/vitest-dev/vitest/issues/6351 [<samp>(d09f0)</samp>](https://github.com/vitest-dev/vitest/commit/d09f00c7) - Cjs build of vite node server  -  by [@&#8203;AkaraChen](https://github.com/AkaraChen) in https://github.com/vitest-dev/vitest/issues/6389 [<samp>(12e70)</samp>](https://github.com/vitest-dev/vitest/commit/12e702bd) - Allow inlining vite's cached dependencies  -  by [@&#8203;chriswheeldon-peakon](https://github.com/chriswheeldon-peakon) in https://github.com/vitest-dev/vitest/issues/6284 [<samp>(03208)</samp>](https://github.com/vitest-dev/vitest/commit/03208017) - Print unexpected error message if peer dependencies have a different version  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6446 [<samp>(b992b)</samp>](https://github.com/vitest-dev/vitest/commit/b992b346) - Ignore importer when resolving Vitest  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6469 [<samp>(0b447)</samp>](https://github.com/vitest-dev/vitest/commit/0b447226) - `expect.getState().testPath` always returns correct path  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6472 [<samp>(ac698)</samp>](https://github.com/vitest-dev/vitest/commit/ac698b1c) - UserEvent works consistently between providers  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6480 [<samp>(0b4da)</samp>](https://github.com/vitest-dev/vitest/commit/0b4da69e) - **browser**: - Print correct stack trace for unhandled errors  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6134 [<samp>(1da6c)</samp>](https://github.com/vitest-dev/vitest/commit/1da6cebe) - Use documentElement as the root for selector  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(d8077)</samp>](https://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://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6296 [<samp>(30dc5)</samp>](https://github.com/vitest-dev/vitest/commit/30dc5793) - Produce valid config file if preview provider is used  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6305 [<samp>(7f0ae)</samp>](https://github.com/vitest-dev/vitest/commit/7f0ae292) - Correctly run in-source tests in the browser  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6440 [<samp>(c8531)</samp>](https://github.com/vitest-dev/vitest/commit/c853126e) - Exclude missed packages from optimization, print help message  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6445 [<samp>(8d883)</samp>](https://github.com/vitest-dev/vitest/commit/8d883cf0) - Define mocker as a dependency  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6476 [<samp>(9560a)</samp>](https://github.com/vitest-dev/vitest/commit/9560ab7f) - **coverage**: - Warn if `vitest` and `@vitest/*` versions don't match  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6317 [<samp>(e662c)</samp>](https://github.com/vitest-dev/vitest/commit/e662c7b2) - V8 to support source maps with multiple sources  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6120 [<samp>(1f6cb)</samp>](https://github.com/vitest-dev/vitest/commit/1f6cb59f) - V8 to warn instead of crash when conversion fails  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6318 [<samp>(91dea)</samp>](https://github.com/vitest-dev/vitest/commit/91dea8c1) - Use project specific `vitenode` for uncovered files  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6044 [<samp>(da52d)</samp>](https://github.com/vitest-dev/vitest/commit/da52d23f) - **runner**: - Use `performance.now` instead of `Date.now` for duration  -  by [@&#8203;LuciNyan](https://github.com/LuciNyan) in https://github.com/vitest-dev/vitest/issues/6382 [<samp>(fe489)</samp>](https://github.com/vitest-dev/vitest/commit/fe489432) - Async assertion auto await should timeout  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6391 [<samp>(ad6e7)</samp>](https://github.com/vitest-dev/vitest/commit/ad6e72fc) - **snapshot**: - Reject multiple `toMatchInlineSnapshot` updates at the same location  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6332 [<samp>(1606f)</samp>](https://github.com/vitest-dev/vitest/commit/1606f34f) - Improve inline snapshot inside loop rejection  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6339 [<samp>(e0368)</samp>](https://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://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6256 [<samp>(153ff)</samp>](https://github.com/vitest-dev/vitest/commit/153ff01b) - **types**: - Allow Callbacks Passed to before\*/after\* to Return Anything  -  by [@&#8203;LuciNyan](https://github.com/LuciNyan) in https://github.com/vitest-dev/vitest/issues/6393 [<samp>(f6217)</samp>](https://github.com/vitest-dev/vitest/commit/f6217a22) - **ui**: - Remove "filters" flickering  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6463 [<samp>(0223b)</samp>](https://github.com/vitest-dev/vitest/commit/0223bb79) - Render project name consistently  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6329 [<samp>(94a18)</samp>](https://github.com/vitest-dev/vitest/commit/94a186ec) - **vite-node**: - Disable watcher if hmr is disabled  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6251 [<samp>(c51c6)</samp>](https://github.com/vitest-dev/vitest/commit/c51c67aa) - Fix watch on vite 6  -  by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/6422 [<samp>(c3ac4)</samp>](https://github.com/vitest-dev/vitest/commit/c3ac43c1) - **vitest**: - Update json reporter output  -  by [@&#8203;Emiyaaaaa](https://github.com/Emiyaaaaa) in https://github.com/vitest-dev/vitest/issues/6064 [<samp>(c9979)</samp>](https://github.com/vitest-dev/vitest/commit/c997937b) - Add more type guards for --merge-reports  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6307 [<samp>(0a5d8)</samp>](https://github.com/vitest-dev/vitest/commit/0a5d8169) - Always resolve vitest to the root version  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6369 [<samp>(163d7)</samp>](https://github.com/vitest-dev/vitest/commit/163d7624) - Dispose vmForks listeners to avoid memory leak  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6448 [<samp>(2673c)</samp>](https://github.com/vitest-dev/vitest/commit/2673c3bb) #####     [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.5...v2.1.0) ### [`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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6191 [<samp>(29176)</samp>](https://github.com/vitest-dev/vitest/commit/291766d7) - `testNamePattern` adds leading space  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;MNeverOff](https://github.com/MNeverOff) in 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 [@&#8203;zacharyvoase](https://github.com/zacharyvoase) and **Zack Voase** in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(93882)</samp>](https://github.com/vitest-dev/vitest/commit/93882f38) - Improve `defineProject` and `defineWorkspace` types  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;hahanein](https://github.com/hahanein) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6159 [<samp>(807a2)</samp>](https://github.com/vitest-dev/vitest/commit/807a2cbc) - **browser**: - Don't panic if [@&#8203;vitest/browser](https://github.com/vitest/browser) is installed outside of project root  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6135 [<samp>(ccfcd)</samp>](https://github.com/vitest-dev/vitest/commit/ccfcd488) - Set global filepath  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;thor-juhasz](https://github.com/thor-juhasz) and [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6183 [<samp>(90576)</samp>](https://github.com/vitest-dev/vitest/commit/90576148) - Ignore `*.cts` files  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;thor-juhasz](https://github.com/thor-juhasz) and [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in 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 [@&#8203;syi0808](https://github.com/syi0808) in 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/releases/tag/v2.0.2) [Compare Source](https://github.com/vitest-dev/vitest/compare/v2.0.1...v2.0.2) #####    🐞 Bug Fixes - **browser**: - Remove [@&#8203;vitest/runner](https://github.com/vitest/runner) > pretty-format from prebundling because it doesn't exist  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6075 [<samp>(a169d)</samp>](https://github.com/vitest-dev/vitest/commit/a169d25a) - Inline pretty-format and replace picocolors with tinyrainbow  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6077 [<samp>(80a43)</samp>](https://github.com/vitest-dev/vitest/commit/80a43d5c) - Remove `crypto.randomUUID` from the client  -  by [@&#8203;userquin](https://github.com/userquin) in https://github.com/vitest-dev/vitest/issues/6079 [<samp>(04c83)</samp>](https://github.com/vitest-dev/vitest/commit/04c83acc) - Correctly overwrite loupe require  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(756ac)</samp>](https://github.com/vitest-dev/vitest/commit/756ac2bc) - Dedupe @&#8203;vitest/browser/client  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6081 [<samp>(ee725)</samp>](https://github.com/vitest-dev/vitest/commit/ee725184) - Don't release keyboard automatically  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6083 [<samp>(58fac)</samp>](https://github.com/vitest-dev/vitest/commit/58fac77b) - **ui**: - Test files notified only when running  -  by [@&#8203;userquin](https://github.com/userquin) in https://github.com/vitest-dev/vitest/issues/6069 [<samp>(af7fe)</samp>](https://github.com/vitest-dev/vitest/commit/af7fec58) - Encode html entities in task name  -  by [@&#8203;userquin](https://github.com/userquin) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6070 [<samp>(7f0cc)</samp>](https://github.com/vitest-dev/vitest/commit/7f0cc24e) - **web-worker**: - Peer dependency version on `vitest`  -  by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6060 [<samp>(95a2d)</samp>](https://github.com/vitest-dev/vitest/commit/95a2d870) #####    🏎 Performance - **browser**: Don't import msw if no modules are mocked  -  by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/6073 [<samp>(aa527)</samp>](https://github.com/vitest-dev/vitest/commit/aa52792a) #####     [View changes on GitHub](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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 **[@&#8203;hi-ogawa](https://github.com/hi-ogawa)** in https://github.com/vitest-dev/vitest/pull/4784 [<samp>(a0c1d37)</samp>](https://github.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6) - Remove `--segfault-retry` - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 for more details. - Add correct location and snapshot fields in json reporter - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5135 [<samp>(73646)</samp>](https://github.com/vitest-dev/vitest/commit/73646b638) - Remove watchExclude - by [@&#8203;patak-dev](https://github.com/patak-dev) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5435 [<samp>(dbbbe)</samp>](https://github.com/vitest-dev/vitest/commit/dbbbe4304) - Support concurrent suites - by **[@&#8203;hi-ogawa](https://github.com/hi-ogawa)** in https://github.com/vitest-dev/vitest/pull/5491 [<samp>(222ce44)</samp>](https://github.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa) - Support overriding `exclude` in coverage - by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/5997 [<samp>(169bc)</samp>](https://github.com/vitest-dev/vitest/commit/169bc1fde) - ⚠️ Vitest coverage no longer adds test files to `exclude` patterns if `coverage.exclude` was overridden in the config. Add your test patterns manually, or merge your overrides with default ones: `['**/my-pattern.js', ...coverageConfigDefaults.exclude]`. See https://vitest.dev/config/#coverage-exclude for an example. - **api:** - Remove `process.exit` if workspace project failed to be created - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5804 [<samp>(a820e)</samp>](https://github.com/vitest-dev/vitest/commit/a820e7ac6) - Don't call `process.exit` manually - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5926 [<samp>(e9b63)</samp>](https://github.com/vitest-dev/vitest/commit/e9b638d40) ##### 🚀 Features <img width="1392" alt="Running tresjs example in Vitest BrowserMode" src="https://github.com/vitest-dev/vitest/assets/16173870/3b6bc721-b194-416d-a685-cf7282ee802a"> - **browser**: - 🌐 This release lays the groundwork for the next iteration of Vitest Browser Mode. You can read more about our future plans at https://github.com/vitest-dev/vitest/discussions/5828 - Add commands to communicate betweens server and the browser - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5810 [<samp>(e5b9a)</samp>](https://github.com/vitest-dev/vitest/commit/e5b9a0be4) - Support changing the viewport - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;userquin](https://github.com/userquin) in https://github.com/vitest-dev/vitest/issues/5815 [<samp>(f29b9)</samp>](https://github.com/vitest-dev/vitest/commit/f29b9d408) - Support `click` event - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;userquin](https://github.com/userquin) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5984 [<samp>(ff978)</samp>](https://github.com/vitest-dev/vitest/commit/ff978e58d) - Pretty print diffs coming from cause - by [@&#8203;dubzzz](https://github.com/dubzzz) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5690 [<samp>(a99a1)</samp>](https://github.com/vitest-dev/vitest/commit/a99a14c1c) - Remove deprecated options - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5696 [<samp>(5c308)</samp>](https://github.com/vitest-dev/vitest/commit/5c308edc6) - Add blob reporter - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5663 [<samp>(e2053)</samp>](https://github.com/vitest-dev/vitest/commit/e20538a36) - ✅ Run Vitest in separate processes with `--reporter=blob` flag to generate reports and combine them with `vitest --merge-reports` later! - Add expect.poll utility - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5708 [<samp>(e2e0f)</samp>](https://github.com/vitest-dev/vitest/commit/e2e0ff46a) - Add browser.ui option - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;Joristdh](https://github.com/Joristdh) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [<samp>(98f9b)</samp>](https://github.com/vitest-dev/vitest/commit/98f9b7ab9) - Add an option to return base64 from page.screenshot - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(f645e)</samp>](https://github.com/vitest-dev/vitest/commit/f645e48c5) - **config**: - Allow percentage value for workers option - by [@&#8203;syi0808](https://github.com/syi0808) in https://github.com/vitest-dev/vitest/issues/5982 [<samp>(b1a27)</samp>](https://github.com/vitest-dev/vitest/commit/b1a27d404) - **runner**: - Implement `test.for` - by [@&#8203;hi-ogawa](https://github.com/hi-ogawa) and [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5861 [<samp>(c2380)</samp>](https://github.com/vitest-dev/vitest/commit/c238072fd) - **spy**: - Collect mock.contexts - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;userquin](https://github.com/userquin) in https://github.com/vitest-dev/vitest/issues/5907 [<samp>(45dfc)</samp>](https://github.com/vitest-dev/vitest/commit/45dfc95ae) - Add initializing explorer logic - by [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;userquin](https://github.com/userquin) and **Anjorin Damilare** in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5678 [<samp>(34a80)</samp>](https://github.com/vitest-dev/vitest/commit/34a80b392) - Repeatable `--exclude` option - by [@&#8203;fregante](https://github.com/fregante) in https://github.com/vitest-dev/vitest/issues/5782 [<samp>(d6700)</samp>](https://github.com/vitest-dev/vitest/commit/d6700bbd8) - Remove browser.fileParallelism - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5790 [<samp>(b881e)</samp>](https://github.com/vitest-dev/vitest/commit/b881e88b2) - Install UI icons - by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(b84f1)</samp>](https://github.com/vitest-dev/vitest/commit/b84f1721d) - Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by [@&#8203;pedro00dk](https://github.com/pedro00dk) in https://github.com/vitest-dev/vitest/issues/5875 [<samp>(04107)</samp>](https://github.com/vitest-dev/vitest/commit/041076e7c) - ToJSON recursive error serialization - by [@&#8203;eddienubes](https://github.com/eddienubes) in https://github.com/vitest-dev/vitest/issues/5848 and 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;marvinhagemeister](https://github.com/marvinhagemeister) in https://github.com/vitest-dev/vitest/issues/5972 [<samp>(e0f45)</samp>](https://github.com/vitest-dev/vitest/commit/e0f45cb57) - Don't override uppercase - by [@&#8203;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 [@&#8203;kxalex](https://github.com/kxalex) in https://github.com/vitest-dev/vitest/issues/5978 [<samp>(d7f23)</samp>](https://github.com/vitest-dev/vitest/commit/d7f23d08c) - Include pretty-format in [@&#8203;vitest/runner](https://github.com/vitest/runner) for optimization on npm - by [@&#8203;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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5959 [<samp>(0eda9)</samp>](https://github.com/vitest-dev/vitest/commit/0eda99de9) - **browser**: - Display UI - by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(d41e4)</samp>](https://github.com/vitest-dev/vitest/commit/d41e46a81) - Browser actions icons colors - by [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5827 [<samp>(087fa)</samp>](https://github.com/vitest-dev/vitest/commit/087fa87c3) - Support [@&#8203;testing-library/vue](https://github.com/testing-library/vue) in browser mode out of the box - by [@&#8203;sheremet-va](https://github.com/sheremet-va) [<samp>(76b82)</samp>](https://github.com/vitest-dev/vitest/commit/76b82e5b9) - Print correct transformed module graph - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5845 [<samp>(47003)</samp>](https://github.com/vitest-dev/vitest/commit/470036794) - Show correct prepare time - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5925 [<samp>(2380c)</samp>](https://github.com/vitest-dev/vitest/commit/2380cb95e) - Remove "util" warning - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in https://github.com/vitest-dev/vitest/issues/5935 [<samp>(48f28)</samp>](https://github.com/vitest-dev/vitest/commit/48f28f731) - Remove hacky retry - by [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;kouak](https://github.com/kouak) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;Gravitonic](https://github.com/Gravitonic) in https://github.com/vitest-dev/vitest/issues/6006 [<samp>(2898a)</samp>](https://github.com/vitest-dev/vitest/commit/2898a525d) - Remove work-around for implicit `else` - by [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in https://github.com/vitest-dev/vitest/issues/6014 [<samp>(368c1)</samp>](https://github.com/vitest-dev/vitest/commit/368c13728) - **deps**: - Update dependency [@&#8203;testing-library/dom](https://github.com/testing-library/dom) to v10 - by **renovate\[bot]** in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in 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 [@&#8203;AriPerkkio](https://github.com/AriPerkkio) in 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 [@&#8203;pengooseDev](https://github.com/pengooseDev) in 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 [@&#8203;pengooseDev](https://github.com/pengooseDev) in 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 [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in 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 [@&#8203;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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;dubzzz](https://github.com/dubzzz) in 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 [@&#8203;hi-ogawa](https://github.com/hi-ogawa) in https://github.com/vitest-dev/vitest/issues/5733 [<samp>(a4ec5)</samp>](https://github.com/vitest-dev/vitest/commit/a4ec58319) - Package exports - by [@&#8203;userquin](https://github.com/userquin) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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 [@&#8203;sheremet-va](https://github.com/sheremet-va) in 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> --- ### 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 has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Renovate [BOT] added 1 commit 2024-07-08 13:49:44 +00:00
chore(deps): update dependency vitest to v2
Some checks failed
renovate/artifacts Artifact file update failure
Build, check & Test / run (push) Failing after 24s
Lint / run (push) Failing after 23s
Build Docker Image / build_docker (push) Failing after 1m8s
Delete Packages / Delete the package on a closed Pull Request (pull_request) Failing after 7s
Delete Packages / Delete the package on a deleted branch (pull_request) Has been skipped
bd73ec8e72
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @vitest/coverage-v8@1.6.0
npm error Found: vitest@2.0.0
npm error node_modules/vitest
npm error   dev vitest@"^2.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer vitest@"1.6.0" from @vitest/coverage-v8@1.6.0
npm error node_modules/@vitest/coverage-v8
npm error   dev @vitest/coverage-v8@"^1" from the root project
npm error
npm error Conflicting peer dependency: vitest@1.6.0
npm error node_modules/vitest
npm error   peer vitest@"1.6.0" from @vitest/coverage-v8@1.6.0
npm error   node_modules/@vitest/coverage-v8
npm error     dev @vitest/coverage-v8@"^1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-07-08T13_49_40_288Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-07-08T13_49_40_288Z-debug-0.log

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: package-lock.json ``` npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: @vitest/coverage-v8@1.6.0 npm error Found: vitest@2.0.0 npm error node_modules/vitest npm error dev vitest@"^2.0.0" from the root project npm error npm error Could not resolve dependency: npm error peer vitest@"1.6.0" from @vitest/coverage-v8@1.6.0 npm error node_modules/@vitest/coverage-v8 npm error dev @vitest/coverage-v8@"^1" from the root project npm error npm error Conflicting peer dependency: vitest@1.6.0 npm error node_modules/vitest npm error peer vitest@"1.6.0" from @vitest/coverage-v8@1.6.0 npm error node_modules/@vitest/coverage-v8 npm error dev @vitest/coverage-v8@"^1" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error /tmp/renovate/cache/others/npm/_logs/2024-07-08T13_49_40_288Z-eresolve-report.txt npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-07-08T13_49_40_288Z-debug-0.log ```
Renovate [BOT] changed title from chore(deps): update dependency vitest to v2 to chore(deps): update dependency vitest to v2 - autoclosed 2024-12-08 18:20:53 +00:00
Renovate [BOT] closed this pull request 2024-12-08 18:20:53 +00:00
Some checks failed
renovate/artifacts Artifact file update failure
Build, check & Test / run (push) Failing after 24s
Lint / run (push) Failing after 23s
Build Docker Image / build_docker (push) Failing after 1m8s
Delete Packages / Delete the package on a closed Pull Request (pull_request) Failing after 7s
Delete Packages / Delete the package on a deleted branch (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: avior/template-web-astro#35
No description provided.