-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Support for unit testing in nuxt environment #14972
Copy link
Copy link
Closed as not planned
Labels
Description
Describe the feature
Unit testing (e.g. [parts of ]composables or server functions) doesn't require a full built of nuxt.
Originally posted by @pi0 in vitest-dev/vitest#2044 (comment)
We plan to support also unit testing with
nuxi testbut properly in a Nuxt environment. Exposing vite config only is not enough for doing that and in past similar approach made lots of headaches for testing in Nuxt 2. However, probably will expose as a@nuxt/kitutility anyway as an alternative to current usage that needs replicating vite config for aliases.
Related: https://github.com/nuxt/nuxt.js/issues/13077 (auto-import issues when testing components)
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
Reactions are currently unavailable