-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
48 lines (47 loc) · 1.09 KB
/
vitest.config.js
File metadata and controls
48 lines (47 loc) · 1.09 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
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
include: ['tests/unit/**/*.test.js'],
environment: 'node',
},
},
{
test: {
name: 'services',
include: ['tests/services/**/*.test.js'],
environment: 'node',
setupFiles: ['tests/setup.js'],
},
},
{
test: {
name: 'integration',
include: ['tests/integration/**/*.test.js'],
environment: 'node',
setupFiles: ['tests/integration/setup.js'],
testTimeout: 30_000,
pool: 'forks',
poolOptions: { forks: { singleFork: true } },
},
},
{
test: {
name: 'snapshots',
include: ['tests/snapshots/**/*.test.js'],
environment: 'node',
testTimeout: 30_000,
},
},
],
coverage: {
provider: 'v8',
include: ['src/**/*.js'],
exclude: ['src/index.js'],
reporter: ['text', 'lcov'],
},
},
})