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
Hi 👋
I am attempting to use @nuxt/test-utils on a fresh nuxt-project.
However, the setup function throws with the following message: No 'pages' directory found in <PATH-TO-MY-PROJECT>/test/fixture. Did you mean to run 'nuxt' in the parent ('../') directory?
I have tried to pass configFile and rootDir with path values relative to the test file.
Is this a bug or am I doing something wrong?
All help is greatly appreciated 😄
Here is the relevant code:
// <PATH-TO-MY-PROJECT>/test/pages/index.test.tsimport{setupTest}from'@nuxt/test-utils'describe("The index page",()=>{setupTest({server: true/*, configFile: "../../nuxt.config.js", rootDir: "../../" */});});
Hi 👋
I am attempting to use
@nuxt/test-utils
on a fresh nuxt-project.However, the setup function throws with the following message:
No 'pages' directory found in <PATH-TO-MY-PROJECT>/test/fixture. Did you mean to run 'nuxt' in the parent ('../') directory?
I have tried to pass
configFile
androotDir
with path values relative to the test file.Is this a bug or am I doing something wrong?
All help is greatly appreciated 😄
Here is the relevant code:
The text was updated successfully, but these errors were encountered: