Skip to content
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

feat: support jest.setSystemTime #571

Merged
merged 2 commits into from May 11, 2024
Merged

Conversation

puglyfe
Copy link
Contributor

@puglyfe puglyfe commented May 6, 2024

Closes #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 puglyfe marked this pull request as ready for review May 6, 2024 18:03
@puglyfe
Copy link
Contributor Author

puglyfe commented May 9, 2024

@skovhus looks like this needs approval to run tests

Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

❗ 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
@@            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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@puglyfe puglyfe changed the title support jest.setSystemTime feat: support jest.setSystemTime May 10, 2024
Copy link
Owner

@skovhus skovhus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@skovhus skovhus enabled auto-merge (squash) May 11, 2024 10:53
@skovhus skovhus merged commit a0a0f8f into skovhus:main May 11, 2024
1 check passed
@puglyfe puglyfe deleted the jest-setsystemtime branch May 13, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jasmine-globals: support for jest.setSystemTime()
2 participants