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 false positive snapshot tests that depend on timezone #1226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lklots
Copy link

@lklots lklots commented Mar 3, 2023

Description

the following fails 7 snapshot tests: export TZ="Pacific/Honolulu" && npm test
the following fixes those 7 snapshot tests: export TZ="Europe/London" && npm test

The patch fixes the timezone prior to test setup. This requires jest global configuration rather than the setupFiles configuration because the latter executes too late in the setup process.

Related Issues

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.

None yet

1 participant