diff --git a/packages/jest-util/src/fake_timers.js b/packages/jest-util/src/fake_timers.js index 67bd2bd067de..fc1002230e7e 100644 --- a/packages/jest-util/src/fake_timers.js +++ b/packages/jest-util/src/fake_timers.js @@ -98,6 +98,12 @@ export default class FakeTimers { } } + setSystemTime(now?: number) { + if (this._checkFakeTimers()) { + this._clock.setSystemTime(now); + } + } + _checkFakeTimers() { if (!this._fakingTime) { this._global.console.warn(