Correct setup config for Test Utils
Reproduction: https://stackblitz.com/edit/github-gu1sj1?file=tests%2Fbasic.e2e.test.ts
Issue filed: https://github.com/nuxt/test-utils/issues/893
I can't seem to utilize the alternative nuxt.config location with @nuxt/test-utils. If I have my nuxt.config as
This is my test:
and my nuxt.config:
If I move and rename nuxt.config back to the root, it works.
I'm not sure if this is a limitation or expectation of test-utils, or the config file name/location that isn't being honored by the
Issue filed: https://github.com/nuxt/test-utils/issues/893
I can't seem to utilize the alternative nuxt.config location with @nuxt/test-utils. If I have my nuxt.config as
./.config/nuxt.ts, e2e tests will always fail with Error: Invalid nuxt app. (Please explicitly set 'options.rootDir' pointing to a valid nuxt app).This is my test:
and my nuxt.config:
If I move and rename nuxt.config back to the root, it works.
I'm not sure if this is a limitation or expectation of test-utils, or the config file name/location that isn't being honored by the
configFile setting, or what.StackBlitzNathan Chase
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
GitHub
Environment Reproduction: https://stackblitz.com/edit/github-gu1sj1?file=tests%2Fbasic.e2e.test.ts I can't seem to utilize the alternative nuxt.config location with @nuxt/test-utils. If I have ...