-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.config.ts
More file actions
51 lines (42 loc) · 1.02 KB
/
vitest.config.ts
File metadata and controls
51 lines (42 loc) · 1.02 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { defineVitestProject } from '@nuxt/test-utils/config';
import { resolve } from 'pathe';
import { defaultExclude, defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
alias: {
'bun:test': resolve('./vitest.config.ts'),
},
},
test: {
projects: [
{
test: {
name: 'e2e',
include: ['app/tests/e2e/**/*.ts'],
environment: 'node',
},
},
await defineVitestProject({
assetsInclude: ['**/*.html'],
test: {
name: 'nuxt',
includeSource: [
'./server/**/*.ts',
'./shared/**/*.ts',
'./app/utils/*.ts',
'./app/composables/tiptap/**/*.ts',
],
exclude: [
...defaultExclude,
'app/tests/e2e/**',
],
environment: 'nuxt',
setupFiles: [
'./server/test/stub-nitro.ts',
'./app/tests/setup-dom-expects.ts',
],
},
}),
],
},
});