-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
29 lines (27 loc) · 813 Bytes
/
Copy pathvitest.config.js
File metadata and controls
29 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
29
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'jsdom',
include: ['tests/frontend/**/*.test.js'],
globals: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json-summary', 'html'],
include: [
'src/js/utils/**',
'src/js/core/**',
],
exclude: [
'src/js/core/state.js', // DOM-abhängig (Canvas-Refs, Cytoscape)
'src/js/core/actions.js', // Importiert Renderer/Inspector – voller DOM-Chain
'src/js/core/theme.js', // Direkte document.documentElement-Manipulation
'src/js/core/constants.js',// Reine Konfigurationsdaten, keine Logik
],
thresholds: {
lines: 60,
functions: 60,
branches: 60,
},
},
},
});