Skip to content

Commit d7f825d

Browse files
authored
Merge pull request #9 from Tam2/test/raise-subprocess-timeout
test: raise testTimeout to 30s for subprocess-spawning tests
2 parents 8c1ba09 + 6a550cc commit d7f825d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vitest.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { defineConfig } from 'vitest/config';
22

33
export default defineConfig({
44
test: {
5+
// Several tests spawn slow subprocesses — the CLI tests run `openapi-typescript`, and the
6+
// generated-output test runs `tsc`. Run in parallel on a contended CI runner these can exceed
7+
// the 5s default, so give every test more headroom.
8+
testTimeout: 30000,
59
// Run the type-level assertions (test/types.test-d.ts) as real type checks — not no-op runtime
610
// calls — so the GetRequestBody / schema-compatibility contracts are verified in CI alongside
711
// the runtime suite. Uses tsconfig.test.json because the build tsconfig excludes test/.

0 commit comments

Comments
 (0)