fix: bundle-mcp test TS error + Windows CI timeouts

- bundle-mcp.test.ts: cast args to string[] to fix TS7053, use
  fs.realpath for Windows 8.3 short-name path resolution
- vitest.config.ts: raise testTimeout to 240s on Windows (hookTimeout
  was already raised; several provider-usage and auth-choice tests
  exceed 120s on the single-worker Windows runner)

Made-with: Cursor
This commit is contained in:
OpenClaw Contributor
2026-03-16 23:50:49 +00:00
parent 99de82b9de
commit f40583500e

View File

@@ -24,7 +24,7 @@ export default defineConfig({
],
},
test: {
testTimeout: 120_000,
testTimeout: isWindows ? 240_000 : 120_000,
hookTimeout: isWindows ? 180_000 : 120_000,
// Many suites rely on `vi.stubEnv(...)` and expect it to be scoped to the test.
// This is especially important under `pool=vmForks` where env leaks cross-file.