Skip to content

Commit

Permalink
feat(nuxt-vitest): allow configuring nuxt rootDir and overrides (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 29, 2023
1 parent e0a5a17 commit c92e78e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fixtures/nuxt-vitest/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fileURLToPath } from 'node:url'
import { defineVitestConfig } from 'nuxt-vitest/config'

export default defineVitestConfig({
Expand All @@ -7,4 +8,7 @@ export default defineVitestConfig({
reportsDirectory: 'coverage',
},
},
nuxt: {
rootDir: fileURLToPath(new URL('./', import.meta.url)),
}
})

0 comments on commit c92e78e

Please sign in to comment.