forked from Orkas-AI/Orkas
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
20 lines (19 loc) · 897 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
20 lines (19 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: false,
include: ['test/**/*.test.ts', 'src/core-agent/test/**/*.test.ts'],
// Each test file gets a fresh module graph — important because several of
// our modules cache state (storage line counts, prompts cache, paths
// mkdir on load). Without isolation, test order would leak state.
isolate: true,
// Runs before any test module (or its transitive imports) is loaded.
// Critical safety net: pins `ORKAS_WORKSPACE_ROOT` to a throwaway tmp
// dir so `paths.ts`'s module-level `WS_ROOT` constant never freezes to
// the developer's real `PC/data/`. See ./test/setup-env.ts for the
// full rationale.
setupFiles: ['./test/setup-env.ts'],
// Default reporter is a per-file dot list — keep CI output compact.
reporters: ['default'],
},
});