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