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

fix: DateTime jest test #1804

Merged
merged 1 commit into from
Mar 27, 2023
Merged

fix: DateTime jest test #1804

merged 1 commit into from
Mar 27, 2023

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Mar 27, 2023

What it solves

DateTime jest test failed during switch to daylight savings time.

Resolves #1803

How this PR fixes it

The test now mocks the system time to a fixed date time.

How to test it

yarn test

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@github-actions
Copy link

github-actions bot commented Mar 27, 2023

Branch preview

✅ Deploy successful!

https://fix_date_time_test--webcore.review-web-core.5afe.dev

@github-actions
Copy link

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

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

This is hilarious. Thanks for the fix! 🎖️

@schmanu schmanu merged commit aadd141 into dev Mar 27, 2023
@schmanu schmanu deleted the fix-date-time-test branch March 27, 2023 09:30
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DateTime unit test fails due to day light savings time
3 participants