Skip to content

fix(vitest-environment): avoid vitest/environments import warning in vitest4.1#1627

Draft
yamachi4416 wants to merge 1 commit intonuxt:mainfrom
yamachi4416:avoid-vitest-environment-warn
Draft

fix(vitest-environment): avoid vitest/environments import warning in vitest4.1#1627
yamachi4416 wants to merge 1 commit intonuxt:mainfrom
yamachi4416:avoid-vitest-environment-warn

Conversation

@yamachi4416
Copy link
Collaborator

@yamachi4416 yamachi4416 commented Mar 20, 2026

🔗 Linked issue

📚 Description

the following warning appeared when importing vitest/environments in Vitest 4.1

Importing from "vitest/environments" is deprecated since Vitest 4.1. Please use "vitest/runtime" instead.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 20, 2026

Open in StackBlitz

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

commit: 53c71c9

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