Skip to content

test: use defineConfig in vitest config#1041

Open
yamachi4416 wants to merge 1 commit intonuxt-modules:mainfrom
yamachi4416:migrate-vitest-config
Open

test: use defineConfig in vitest config#1041
yamachi4416 wants to merge 1 commit intonuxt-modules:mainfrom
yamachi4416:migrate-vitest-config

Conversation

@yamachi4416
Copy link
Copy Markdown

🔗 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

Changed to defineConfig as test-utils's defineVitestProject is intended for nuxt client-environments.

Please refer to: nuxt/nuxt#34645

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Apr 4, 2026

PR Summary

  • Import Statement Update
    The code has been changed to import configurations from 'vitest/config' replacing the previous source '@nuxt/test-utils/config'. This implies that the new configurations will be fetched from 'vitest/config', which may offer better or updated features and functionalities.
  • Configuration Function Modification
    The function for defining configurations in the code has been renamed to 'defineConfig' from its previous name 'defineVitestConfig'. This change might have been implemented for better code readability, understandability or due to alterations in the software's design paradigm.

@yamachi4416 yamachi4416 marked this pull request as ready for review April 4, 2026 08:07
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