We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e515043 commit 07628d5Copy full SHA for 07628d5
1 file changed
packages/asyncapi-typescript-plugin/vitest.config.ts
@@ -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