docs: add domEnvironment option to testing example (#25972)

This commit is contained in:
Till Sanders 2024-02-27 10:12:44 +01:00 committed by GitHub
parent 40c3a3918e
commit 0591966080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,6 +88,7 @@ export default defineVitestConfig({
// environmentOptions: {
// nuxt: {
// rootDir: fileURLToPath(new URL('./playground', import.meta.url)),
// domEnvironment: 'happy-dom', // 'happy-dom' (default) or 'jsdom'
// overrides: {
// // other Nuxt config you want to pass
// }