You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im attempting to create a nuxt.config file for running tests (named nuxt-test.config), which contains additional configuration for running tests that I do not want in the build config. I am attempting to pass the name of the config file into defineVitestConfig, but when running vitest, it's still is using the default nuxt.config file, which is failing tests. If the appropriate configs are moved from the test config into the default then tests run fine.
Example error steps to duplicate:
Install nuxt-vitest into a fresh nuxt project
Create a new nuxt-test.config file containing the module import:
Yes, the configFile option there is a vite config file, rather than a nuxt one. Would you consider adding a local module which includes all your test config?
We could also support a custom nuxt config file but that's not that common in the rest of the Nuxt ecosystem.
Im attempting to create a
nuxt.config
file for running tests (namednuxt-test.config
), which contains additional configuration for running tests that I do not want in the build config. I am attempting to pass the name of the config file intodefineVitestConfig
, but when running vitest, it's still is using the defaultnuxt.config
file, which is failing tests. If the appropriate configs are moved from the test config into the default then tests run fine.Example error steps to duplicate:
nuxt-vitest
into a fresh nuxt projectnuxt-test.config
file containing the module import:vitest.config
file usingdefineVitestConfig
, passing in the following config:This will cause vitest to error as it complains that the 'nuxt-vitest' module is not defined in 'nuxt.config'.
The text was updated successfully, but these errors were encountered: