Skip to content

Commit

Permalink
chore(test): avoid timeout when debugging (#4624)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhsf authored Oct 11, 2024
1 parent b393ce2 commit a971efd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vitest.shared.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import inspector from 'node:inspector';
import { defineConfig } from 'vitest/config';
import pkg from './package.json';

export default defineConfig({
test: {
// Don't time out if we detect a debugger attached
testTimeout: inspector.url() ? Number.MAX_SAFE_INTEGER : undefined,
globals: true,
include: ['**/*.{test,spec}.{mjs,js,ts}'],
snapshotFormat: {
Expand Down

0 comments on commit a971efd

Please sign in to comment.