-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.agent-smoke.config.ts
More file actions
31 lines (29 loc) · 1.25 KB
/
Copy pathvitest.agent-smoke.config.ts
File metadata and controls
31 lines (29 loc) · 1.25 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
import { defineConfig } from 'vitest/config'
import AgentSmokeReporter from './scripts/agent-smoke-reporter'
import { nodeTestExclude, sharedVitestConfig } from './vitest.config'
import { realAgentSmokeTests } from './vitest.smoke-requirements'
const agentSmokeTests = [
...realAgentSmokeTests,
'packages/pty/test/harness-smoke/claude-smoke.test.ts',
'apps/daemon/src/codex-hooks.test.ts',
'packages/harness/src/opencode/cli.test.ts',
'packages/harness/src/cursor/cli.test.ts',
]
/** Explicit, potentially networked/credentialed real-agent smoke scope. */
export default defineConfig({
resolve: sharedVitestConfig.resolve,
test: {
name: 'node',
...sharedVitestConfig.test,
passWithNoTests: true,
include: agentSmokeTests,
exclude: nodeTestExclude,
// Deliberately NO `env: { PODIUM_REAL_CLI: '1' }` here: vitest's test.env writes into
// worker process.env before test files load, so setting it in the config would defeat
// the opt-in gate and launch real agent CLIs (billing quota) on a bare
// `vitest run --config vitest.agent-smoke.config.ts`. The opt-in comes from the shell:
// `bun run test:smoke:agents` sets PODIUM_REAL_CLI=1 explicitly.
retry: 0,
reporters: ['default', new AgentSmokeReporter()],
},
})