Skip to content

feat(breaking): migrate Flow to TS; remove some deprecated functions and aliases #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 25, 2022
2 changes: 2 additions & 0 deletions src/helpers/timers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/* globals jest */
const globalObj = typeof window === 'undefined' ? global : window;

// trigger pipeline

// Currently this fn only supports jest timers, but it could support other test runners in the future.
function runWithRealTimers<T>(callback: () => T): T {
const fakeTimersType = getJestFakeTimersType();
Expand Down