We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62449f2 commit 43c377eCopy full SHA for 43c377e
src/helpers/createTimeoutController.ts
@@ -1,9 +1,8 @@
1
-import { WaitOptions } from '../types'
2
import { jestFakeTimersAreEnabled } from './jestFakeTimersAreEnabled'
3
const DEFAULT_TIMEOUT = 1000
4
5
function createTimeoutController(
6
- timeout: WaitOptions['timeout'] = DEFAULT_TIMEOUT,
+ timeout: number | false = DEFAULT_TIMEOUT,
7
allowFakeTimers: boolean
8
) {
9
let timeoutId: NodeJS.Timeout
0 commit comments