-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.viewer.ts
More file actions
32 lines (29 loc) · 850 Bytes
/
Copy pathvitest.config.viewer.ts
File metadata and controls
32 lines (29 loc) · 850 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
32
import { defineConfig } from 'vitest/config';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
console.log("Vitest config viewer loaded");
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
test: {
name: 'vitest', // Matches VS Code workspace name
globals: true,
environment: 'node',
include: ['_src/test/**/*.Spec.ts'],
setupFiles: ['./_src/app/setup.ts'],
reporters: [
// Console output with BDD format + auto-discovers LiveDoc server for publishing
['./_src/app/reporter/LiveDocSpecReporter.ts', {
detailLevel: 'spec+summary+headers'
}],
],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/**',
'dist/**',
'_src/test/**'
]
}
}
});