setDefaultTimeout

Bun

Symbol

setDefaultTimeout

function setDefaultTimeout(milliseconds: number): void

Sets the default timeout for all tests in the current file. If a test specifies a timeout, it will override this value. The default timeout is 5000ms (5 seconds).

@param milliseconds

the number of milliseconds for the default timeout