Skip to content

Commit

Permalink
✅(vitest) Add retry for Node 23 (#5384)
Browse files Browse the repository at this point in the history
Retries are needed for now against Node 23. There is an open ticket on
V8 side (see https://issues.chromium.org/issues/374285493) and one on
Node side (see nodejs/node#54918) regarding
hanging issues of Node 23.
  • Loading branch information
dubzzz authored Oct 29, 2024
1 parent 003eb2e commit 4f42764
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vitest/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { defineConfig } from 'vitest/config';

const major = Number(process.versions.node.split('.')[0]);

export default defineConfig({
test: {
testTimeout: 60000, // 60s
include: ['**/test/*.{test,spec}.?(c|m)[jt]s?(x)'],
retry: major === 23 ? 5 : undefined,
},
});

0 comments on commit 4f42764

Please sign in to comment.