Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(config): rename deps.optimizer.web to client for vitest4#1593

Merged
danielroe merged 1 commit intonuxt:mainnuxt/test-utils:mainfrom
yamachi4416:deps-optimizer-web-to-clientyamachi4416/test-utils:deps-optimizer-web-to-clientCopy head branch name to clipboard
Feb 23, 2026
Merged

fix(config): rename deps.optimizer.web to client for vitest4#1593
danielroe merged 1 commit intonuxt:mainnuxt/test-utils:mainfrom
yamachi4416:deps-optimizer-web-to-clientyamachi4416/test-utils:deps-optimizer-web-to-clientCopy head branch name to clipboard

Conversation

@yamachi4416
Copy link
Copy Markdown
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

update deps.optimizer.web to deps.optimizer.client to align with the vitest 4 migration guide.

deps.optimizer.web was renamed to deps.optimizer.client. You can also use any custom names to apply optimizer configs when using other server environments

https://main.vitest.dev/guide/migration.html#replacing-vite-node-with-module-runner

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 22, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/test-utils@1593

commit: a88f1b4

@yamachi4416 yamachi4416 marked this pull request as ready for review February 22, 2026 23:23
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 22, 2026

📝 Walkthrough

Walkthrough

The pull request modifies the Vitest/Vite configuration in src/config.ts by updating the optimizer configuration key from web to client. The specific change replaces deps.optimizer.web.enabled: false with deps.optimizer.client.enabled: false. This adjustment alters which optimizer target is disabled when handling server dependencies during Nuxt test mode execution.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description check ✅ Passed The description is directly related to the changeset, explaining the purpose of the configuration update and referencing the Vitest 4 migration guide.
Title check ✅ Passed The title clearly describes the main change: renaming a config key from deps.optimizer.web to client for Vitest 4 compatibility.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@danielroe danielroe changed the title chore(config): rename deps.optimizer.web to client for vitest4 fix(config): rename deps.optimizer.web to client for vitest4 Feb 23, 2026
@danielroe danielroe merged commit 581c611 into nuxt:main Feb 23, 2026
8 checks passed
@github-actions github-actions Bot mentioned this pull request Feb 23, 2026
@yamachi4416 yamachi4416 deleted the deps-optimizer-web-to-client branch February 23, 2026 12:24
@github-actions github-actions Bot mentioned this pull request Apr 8, 2026
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.