-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (27 loc) · 855 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
28 lines (27 loc) · 855 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
import { defineConfig } from 'vitest/config';
import {
COVERAGE_EXCLUDE,
COVERAGE_INCLUDE,
COVERAGE_THRESHOLDS,
} from './coverage.config';
export default defineConfig({
test: {
environment: 'node',
include: ['test/**/*.test.{ts,mjs}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json-summary'],
reportsDirectory: 'coverage',
thresholds: COVERAGE_THRESHOLDS,
include: [...COVERAGE_INCLUDE],
exclude: [
// React Native Codegen and barrel entry wrappers are validated by
// package/native contracts instead of isolated Node execution.
...COVERAGE_EXCLUDE.slice(0, 2),
// Generated trees, fixtures, evidence, and CLI entry wrappers stay
// outside the explicit runtime/core include set above.
...COVERAGE_EXCLUDE.slice(2),
],
},
},
});