Skip to content

Commit

Permalink
[jest_v26.x.x] Add fakeTimers mode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalduez committed May 7, 2020
1 parent 6f4c1c1 commit e846d40
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -908,7 +908,7 @@ type JestObjectType = {
* (setTimeout, setInterval, clearTimeout, clearInterval, nextTick,
* setImmediate and clearImmediate).
*/
useFakeTimers(): JestObjectType,
useFakeTimers(mode?: 'modern' | 'legacy'): JestObjectType,
/**
* Instructs Jest to use the real versions of the standard timer functions.
*/
Expand Down

0 comments on commit e846d40

Please sign in to comment.