How to configure & run Jest tests with a specific timezone?
I’ve just got an issue when running Jest in another countries and found that all the React snapshot test cases related to date time were failed due to different timezone. I figured out 2 solutions that could be useful for you if you’re facing the same
- Instantly run Jest with a timezone
- Configure timezone in the Jest global setup