Skip to content

chore(deps): update vitest to v4.1.0#1620

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/vitest
Open

chore(deps): update vitest to v4.1.0#1620
renovate[bot] wants to merge 1 commit intomainfrom
renovate/vitest

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 16, 2026

This PR contains the following updates:

Package Change Age Confidence
@vitest/browser (source) 4.0.184.1.0 age confidence
@vitest/browser-playwright (source) 4.0.184.1.0 age confidence
@vitest/ui (source) 4.0.184.1.0 age confidence
vitest (source) 4.0.184.1.0 age confidence

Release Notes

vitest-dev/vitest (@​vitest/browser)

v4.1.0

Compare Source

Vitest 4.1 is out!

This release page lists all changes made to the project during the 4.1 beta. To get a review of all the new features, read our blog post.

   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

Configuration

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

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

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

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from danielroe as a code owner March 16, 2026 02:58
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 16, 2026

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/test-utils/@nuxt/test-utils@1620
npm i https://pkg.pr.new/nuxt/test-utils/vitest-environment-nuxt@1620

commit: b50b0ab

@AloisSeckar
Copy link

AloisSeckar commented Mar 19, 2026

As I am just finding out in one of my projects, updating vitest to 4.1.0 will trigger Importing from "vitest/environments" is deprecated since Vitest 4.1. Please use "vitest/runtime" instead. info messages in console because of imports used in https://github.com/nuxt/test-utils/blob/main/src/environments/vitest/index.ts

The fix should be easy:

import type { Environment } from 'vitest/environments'
...
import { populateGlobal } from 'vitest/environments'

needs to change into:

import type { Environment } from 'vitest/runtime'
...
import { populateGlobal } from 'vitest/runtime'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant