-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (26 loc) · 915 Bytes
/
vitest.config.ts
File metadata and controls
28 lines (26 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { defineVitestProject } from '@nuxt/test-utils/config';
import { configDefaults, defineConfig } from 'vitest/config';
export default defineConfig({
root: '.',
appType: 'spa',
test: {
projects: [
await defineVitestProject({
test: {
name: 'unit',
include: ['app/**/*.{test,spec}.ts'],
exclude: ['app/test/**', ...configDefaults.exclude, '.direnv/*'],
environment: 'nuxt',
},
}),
await defineVitestProject({
test: {
name: 'nuxt',
include: ['app/test/nuxt/**/*.{test,spec}.ts'],
exclude: ['app/**/*.{e2e,unit}.{test,spec}.ts', ...configDefaults.exclude, '.direnv/*'],
environment: 'nuxt',
},
}),
],
},
});