-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set local time zone as the same as Melbourne
- Loading branch information
1 parent
44b39f5
commit 8440d10
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It is not easy to deal with local time testing. We usually use MockDate but It is okay if you only monitor the result showing on the screen without verifying the text.
If you want to dig it deep, however, have a look at this article:
https://bengry.medium.com/testing-dates-and-timezones-using-jest-10a6a6ecf375