(node:96948) TimeoutOverflowWarning: Infinity does not fit into a 32-bit signed integer.
Timeout duration was set to 1.
at new Timeout (node:internal/timers:179:17)
at setTimeout (node:timers:138:19)
at SummaryReporter.onHookStart (file:///x/node_modules/vitest/dist/chunks/index.DWDW6mLz.js:1134:19)
at TreeReporter.onHookStart (file:///x/node_modules/vitest/dist/chunks/index.DWDW6mLz.js:1323:17)
at file:///x/node_modules/vitest/dist/chunks/cli-api.CdZ6wo9-.js:12544:56
at Array.map (<anonymous>)
at Vitest.report (file:///x/node_modules/vitest/dist/chunks/cli-api.CdZ6wo9-.js:12544:36)
at TestRun.reportEvent (file:///x/node_modules/vitest/dist/chunks/cli-api.CdZ6wo9-.js:11475:52)
at TestRun.updated (file:///x/node_modules/vitest/dist/chunks/cli-api.CdZ6wo9-.js:11403:54)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at Proxy.onTaskUpdate (file:///x/node_modules/vitest/dist/chunks/cli-api.CdZ6wo9-.js:7076:9)
at EventEmitter.onMessage (file:///x/node_modules/vitest/dist/chunks/index.0kCJoeWi.js:157:20)
Describe the bug
Noticed a user using
slowTestThresholdwithInfinity, probably to avoid seeing any reporter warnings.vitest/packages/vitest/src/node/reporters/summary.ts
Lines 149 to 151 in 6abd557
Reproduction
https://stackblitz.com/~/edit/vitest-dev-vitest-uggyc9t9?file=vite.config.ts:L11&initialPath=/__vitest__/
System Info
Used Package Manager
npm
Validations