-
Notifications
You must be signed in to change notification settings - Fork 324
Expand file tree
/
Copy pathvitest.config.mts
More file actions
44 lines (43 loc) · 913 Bytes
/
vitest.config.mts
File metadata and controls
44 lines (43 loc) · 913 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { defineVitestProject } from '@nuxt/test-utils/config'
import { defaultExclude, defineConfig } from 'vitest/config'
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
exclude: ['test/nuxt/**', 'test/e2e/**', ...defaultExclude],
},
},
defineVitestProject({
test: {
name: 'nuxt',
include: ['test/nuxt/**'],
environmentOptions: {
nuxt: {
overrides: {
modules: ['@nuxt/image'],
},
},
},
},
}),
{
test: {
name: 'e2e',
include: ['test/e2e/**/*.test.ts'],
retry: 3,
},
},
],
coverage: {
exclude: [
'**virtual**',
'**/.nuxt',
'node_modules',
'playground',
'test',
],
},
},
})