Files
jinshen-website/vitest.config.ts
2025-10-25 16:29:15 +08:00

24 lines
523 B
TypeScript

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