forked from deepseek-ai/deepseek-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.web.config.ts
More file actions
35 lines (33 loc) · 1.34 KB
/
Copy pathvitest.web.config.ts
File metadata and controls
35 lines (33 loc) · 1.34 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
import tsconfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from 'vitest/config'
import { standardDecoratorPlugin, vitestExecArgv } from './vitest.shared.ts'
// Web browser lane: real host entry points, built-client interaction snapshots,
// and replayed keyless e2e scenarios outside the unit/e2e includes. Linux PR CI
// pins DSH_SNAPSHOT=replay and compares committed goldens; record/refresh remain
// explicit local workflows. Real-model cases self-skip without DEEPSEEK_API_KEY.
try {
// Node >= 21.7 native; throws when the file does not exist.
process.loadEnvFile(new URL('.env', import.meta.url).pathname)
} catch {
// No .env — fine, the environment may already carry the variables.
}
export default defineConfig({
// Same resolution note as vitest.config.ts: the tsconfig.base.json paths
// facade has no include (match-all), so apps/web/tests resolves bare
// workspace imports to source like every other lane.
plugins: [
tsconfigPaths({ projects: ['./tsconfig.base.json'] }),
standardDecoratorPlugin(),
],
test: {
execArgv: vitestExecArgv,
include: [
'apps/web/tests/**/*.e2e.ts',
'apps/web/tests/**/*.snapshot.ts',
],
// Browser boot + real-model turns are slow; files share one browser, run serial.
testTimeout: 180_000,
hookTimeout: 120_000,
fileParallelism: false,
},
})