forked from steipete/oracle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
38 lines (37 loc) · 1.11 KB
/
vitest.config.ts
File metadata and controls
38 lines (37 loc) · 1.11 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
import { defineConfig } from 'vitest/config';
import { fileURLToPath } from 'node:url';
import path from 'node:path';
export default defineConfig({
test: {
setupFiles: ['tests/setup-env.ts', 'tests/cli/runOracle/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov'],
all: true,
// Measure the real TypeScript sources (the repo doesn’t ship .js in src).
include: ['src/**/*.ts'],
// Exclude interactive/IPC entrypoints that aren’t practical to unit test.
exclude: [
'src/cli/tui/**',
'src/remote/**',
'src/mcp/**',
'src/browser/actions/**',
'src/browser/index.ts',
'src/browser/pageActions.ts',
'src/browser/chromeLifecycle.ts',
'src/browserMode.ts',
'src/oracle.ts',
'src/oracle/modelRunner.ts',
'src/oracle/stringifier.ts',
'src/oracle/types.ts',
'src/types/**',
],
},
},
resolve: {
alias: {
'@src': fileURLToPath(new URL('./src', import.meta.url)),
'@tests': fileURLToPath(new URL('./tests', import.meta.url)),
},
},
});