-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
36 lines (34 loc) · 894 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
36 lines (34 loc) · 894 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
import { resolve } from 'node:path'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: false,
environment: 'node',
passWithNoTests: true,
include: ['tests/unit/**/*.test.ts', 'tests/integration/**/*.test.ts', 'tests/compliance/**/*.test.ts'],
coverage: {
provider: 'v8',
include: ['src/**/*.ts'],
// Exclude pure-type files (no runtime code) and the public re-export entry.
exclude: [
'src/index.ts',
'src/types/public-types.ts',
'src/ast/ast-kinds.ts',
'src/ast/ast-nodes.ts',
'src/lexer/token-types.ts',
],
reporter: ['text', 'lcov', 'html'],
thresholds: {
lines: 90,
statements: 90,
functions: 95,
branches: 88,
},
},
},
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
})