Skip to content

feat(config): support vitest workspaces with defineVitestProject #1258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 6, 2025

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Apr 21, 2025

πŸ”— Linked issue

closes #1124
resolves #1123

❓ 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

this is the beginning of moving to vitest workspaces

  • remove environmentMatchGlobs usage
  • investigate why workspaces are not working with programmatic startVitest usage (cc: @antfu)
  • move more configuration into the workspace config to avoid 'leakage'

Copy link

pkg-pr-new bot commented Apr 21, 2025

Open in StackBlitz

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

commit: 5951969

@danielroe danielroe marked this pull request as ready for review May 6, 2025 13:27
@danielroe danielroe changed the title fix(config): migrate to workspace for glob patterns feat(config): support vitest workspaces with defineVitestProject May 6, 2025
@danielroe danielroe requested a review from antfu May 6, 2025 13:27
@danielroe danielroe merged commit 5497480 into main May 6, 2025
6 checks passed
@danielroe danielroe deleted the fix/environment-workspace branch May 6, 2025 14:44
@github-actions github-actions bot mentioned this pull request May 6, 2025
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.

environmentMatchGlobs API was deprecated in Vitest 3
1 participant