-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
31 lines (30 loc) · 980 Bytes
/
vitest.config.ts
File metadata and controls
31 lines (30 loc) · 980 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
enabled: true,
reporter: ['text'],
include: ['src/**/*.ts'],
exclude: [
'src/**/*.d.ts',
'src/index.ts', // Core entry point - just exports
'src/node.ts', // Node entry point - just exports
'src/browser.ts', // Browser entry point - just exports
'src/mock.ts', // Mock entry point - just exports
'src/interfaces.ts', // Type definitions only - no executable code
'src/BrowserWebSocketConnector.ts', // Browser-specific, can't test in Node
'src/NodeWebSocketConnector.ts' // Node-specific, requires actual WebSocket server
],
thresholds: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
}
},
},
});