[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-vitest. An vitest environment with support for testing code that needs a Nuxt runtime environment
nuxt nuxt-module testing unit-testing vitest
0

Configure Feed

Select the types of activity you want to include in your feed.

docs: add some information on `environmentOptions`

Daniel Roe (May 29, 2023, 5:06 AM -0500) 51144ba4 2cc5038d

+11 -1
+11 -1
README.md
··· 67 67 68 68 ```js 69 69 // vitest.config.ts 70 + import { fileURLToPath } from 'node:url' 70 71 import { defineVitestConfig } from 'nuxt-vitest/config' 71 72 72 73 export default defineVitestConfig({ 73 74 test: { 74 - environment: 'nuxt' 75 + environment: 'nuxt', 76 + // you can optionally set nuxt-specific environment options 77 + // environmentOptions: { 78 + // nuxt: { 79 + // rootDir: fileURLToPath(new URL('./playground', import.meta.url)), 80 + // overrides: { 81 + // // other nuxt config you want to pass 82 + // } 83 + // } 84 + // } 75 85 } 76 86 }) 77 87 ```