-
Notifications
You must be signed in to change notification settings - Fork 190
Expand file tree
/
Copy pathvitest.config.ts
More file actions
44 lines (43 loc) · 1.04 KB
/
vitest.config.ts
File metadata and controls
44 lines (43 loc) · 1.04 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
import { defineConfig } from 'vitest/config';
// https://vitejs.dev/config/
export default defineConfig({
test: {
projects: [
{
test: {
name: 'integration',
environment: 'node',
include: ['test/integration/**/*.spec.ts'],
},
},
{
test: {
name: 'unit',
environment: 'node',
include: ['test/**/*.spec.ts'],
exclude: ['test/integration/**/*'],
},
},
],
coverage: {
provider: 'v8',
reporter: ['clover', 'cobertura', 'json-summary', 'json', 'lcov', 'text'],
include: [
'src',
// TODO @Shinigami92 2024-04-02: Add 'bin' folder in another PR
//'bin'
],
exclude: ['src/operations/*Types.ts'],
reportOnFailure: true,
thresholds: {
lines: 90,
statements: 90,
functions: 90,
branches: 85,
},
},
reporters: process.env.CI_PREFLIGHT
? ['default', 'github-actions']
: [['default', { summary: false }]],
},
});