Skip to content

Commit

Permalink
[jest_26.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 18a4052 commit cc7ed1f
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 cc7ed1f

Please sign in to comment.