diff --git a/vitest.config.ts b/vitest.config.ts index c2199d65..748a0d6d 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,13 +1,12 @@ import { fileURLToPath } from 'node:url' import { defineVitestConfig } from '@nuxt/test-utils/config' -import { defaultExclude } from 'vitest/config' export default defineVitestConfig({ test: { testTimeout: 1000, globals: true, silent: true, - exclude: [...defaultExclude, './test/vue/**.spec.ts'], + include: ['./test/components/**.spec.ts'], environment: 'nuxt', environmentOptions: { nuxt: { diff --git a/vitest.vue.config.ts b/vitest.vue.config.ts index f8be296a..3c8d7a66 100644 --- a/vitest.vue.config.ts +++ b/vitest.vue.config.ts @@ -9,6 +9,7 @@ const vueComponents = await glob('./src/runtime/vue/components/*.vue', { absolut export default defineConfig({ test: { + testTimeout: 1000, environment: 'happy-dom', silent: true, include: ['./test/components/**.spec.ts'],