Created
June 1, 2023 13:27
-
-
Save jarrodmedrano/57e5c291e4e204738acbe8c1787db208 to your computer and use it in GitHub Desktop.
Jest set date time
This file contains hidden or 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
jest.useFakeTimers().setSystemTime(new Date('2023-01-01')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment