import { defineConfig } from 'vitest/config'; import { defineVitestProject } from '@nuxt/test-utils/config'; export default defineConfig({ test: { globals: true, projects: [ { test: { name: 'unit', include: [ 'app/**/*.test.ts', 'app/**/*.spec.ts', 'server/**/*.test.ts', 'server/**/*.spec.ts', ], environment: 'node', }, }, await defineVitestProject({ test: { name: 'nuxt', include: ['tests/nuxt/**/*.{test,spec}.ts'], environment: 'nuxt', }, }), { test: { name: 'e2e', include: ['test/e2e/*.{test,spec}.ts'], environment: 'node', }, }, ], }, });