Skip to content

Commit 43c377e

Browse files
Lei ChenLei Chen
Lei Chen
authored and
Lei Chen
committed
change timeout type
1 parent 62449f2 commit 43c377e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/helpers/createTimeoutController.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { WaitOptions } from '../types'
21
import { jestFakeTimersAreEnabled } from './jestFakeTimersAreEnabled'
32
const DEFAULT_TIMEOUT = 1000
43

54
function createTimeoutController(
6-
timeout: WaitOptions['timeout'] = DEFAULT_TIMEOUT,
5+
timeout: number | false = DEFAULT_TIMEOUT,
76
allowFakeTimers: boolean
87
) {
98
let timeoutId: NodeJS.Timeout

0 commit comments

Comments
 (0)