Skip to content

Commit 07628d5

Browse files
committed
test(asyncapi-plugin): add Vitest configuration with increased test timeout
1 parent e515043 commit 07628d5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from 'vitest/config';
2+
3+
export default defineConfig({
4+
test: {
5+
// Increased timeout is required because AsyncAPI schema parsing with @asyncapi/parser
6+
// is CPU-intensive and slow on CI runners (typically 2 vCPU GitHub Actions).
7+
// The first few tests pay the full cost of parser initialization (~4-5s on CI),
8+
// while subsequent tests benefit from internal caching (~600ms).
9+
// Default Vitest timeout (5000ms) is too tight for CI, causing flaky failures.
10+
testTimeout: 30_000,
11+
},
12+
});

0 commit comments

Comments
 (0)