-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.js
More file actions
39 lines (38 loc) · 1.07 KB
/
vitest.config.js
File metadata and controls
39 lines (38 loc) · 1.07 KB
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
37
38
39
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'jsdom',
setupFiles: ['tests/setup/vitest.setup.js'],
include: ['tests/**/*.test.js'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov'],
include: [
'src/background/background.js',
'src/utils/scriptAnalyzer.js',
'src/utils/content_bridge.js',
'src/offscreen/offscreen.js',
'src/popup/popup.js',
'src/elementSelector/core.js',
'src/GM/gm_bridge.js',
'src/GM/gmApiDefinitions.js',
'src/GM/helpers/*.js',
'src/GM/Values/*.js',
'src/utils/metadataParser.js',
'src/utils/urls.js',
'src/utils/ai_diff_helper.js',
'src/core/userscriptAdapter.js',
'src/core/scriptRegistry.js',
'src/core/scriptUpdater.js',
'src/editor/ai_code_manager.js',
'src/ai_dom_editor/editor/helpers/*.js',
],
thresholds: {
lines: 70,
statements: 70,
functions: 70,
branches: 70,
},
},
},
});