-
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) · 813 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
28 lines (27 loc) · 813 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 { resolve } from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
name: 'suncode',
// Run both new vitest tests and migrated bun:test files
include: ['test/**/*.test.ts', 'src/worker/tools/*.test.ts'],
// Kimi Code style: no globals, explicit imports
globals: false,
// pi style: 30s timeout + node environment
environment: 'node',
testTimeout: 30_000,
// Coverage: v8 provider, same pattern as Kimi Code
coverage: {
provider: 'v8',
include: ['src/worker/**/*.ts'],
exclude: ['**/*.test.ts', '**/*.spec.ts', 'dist/**'],
reporter: ['text', 'html'],
},
},
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
'@shared': resolve(__dirname, 'src/shared'),
},
},
});