-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrstest.native-host.config.ts
More file actions
24 lines (22 loc) · 1.04 KB
/
Copy pathrstest.native-host.config.ts
File metadata and controls
24 lines (22 loc) · 1.04 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
import { defineConfig } from '@rstest/core';
import { nativeHostTestFiles } from './rstest.integration-tests.ts';
import { poolTimeouts, workspaceGlobalSetup, workspaceSetupFiles } from './rstest.pools.ts';
import { withAgentBundleRslibConfig } from './rstest.rslib.ts';
/**
* The installed-host contract lane (`pnpm test:native-host`): the files in
* nativeHostTestFiles drive the real `claude` / `codex` CLIs and skip
* themselves unless AGENT_BUNDLE_NATIVE_HOST_CONTRACTS=1, which the script
* sets. One worker, because each case is a real host session against the
* developer's installed CLI. The files set no per-case timeouts, so the
* pool floor is the budget: 60 s, twice the 30–32 s the #576 audit measured
* for the comparable real-host install variants in the integration pool.
*/
export default defineConfig({
extends: withAgentBundleRslibConfig(),
include: [...nativeHostTestFiles],
globalSetup: [...workspaceGlobalSetup],
pool: { maxWorkers: 1 },
setupFiles: [...workspaceSetupFiles],
isolate: true,
...poolTimeouts(60_000),
});