skovhus / jest-codemods

Codemods for migrating to Jest https://github.com/facebook/jest 👾
MIT License
877 stars 81 forks source link

feat: support `jest.setSystemTime` #571

Closed puglyfe closed 3 months ago

puglyfe commented 3 months ago

Closes https://github.com/skovhus/jest-codemods/issues/570

Seems pretty straight forward. In the interest of keeping it simple, I opted to go with setSystemTime rather than trying to locate and pass a config option to useFakeTimers.

puglyfe commented 3 months ago

@skovhus looks like this needs approval to run tests

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.59%. Comparing base (a94e2b5) to head (443e9d7). Report is 47 commits behind head on main.

:exclamation: Current head 443e9d7 differs from pull request most recent head 9066527. Consider uploading reports for the commit 9066527 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #571 +/- ## ========================================== + Coverage 92.38% 92.59% +0.20% ========================================== Files 26 27 +1 Lines 1944 1999 +55 Branches 405 414 +9 ========================================== + Hits 1796 1851 +55 Misses 102 102 Partials 46 46 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.