Skip to content

Commit

Permalink
fix(nuxt-vitest): respect cwd as vite test dir
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 30, 2023
1 parent ceef5fe commit 1114df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nuxt-vitest/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export async function getVitestConfigFromNuxt(
],
test: {
...options.viteConfig.test,
dir: options.nuxt.options.rootDir,
dir: process.cwd(),
environmentOptions: {
...options.viteConfig.test?.environmentOptions,
nuxtRuntimeConfig: options.nuxt.options.runtimeConfig,
Expand Down

0 comments on commit 1114df5

Please sign in to comment.