Skip to content

Commit

Permalink
Set consistent timezone for tests (#209)
Browse files Browse the repository at this point in the history
## Changes

- Fix common issue where a test passes locally, but fails in the CI or
on other engineers' machines, because of a difference in timezone
  • Loading branch information
sawyerh authored Sep 18, 2023
1 parent 2931b56 commit 5db0cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"start": "next start -p ${PORT:-3000}",
"storybook": "storybook dev -p 6006",
"storybook-build": "storybook build",
"test": "jest --ci --coverage",
"test-update": "jest --update-snapshot",
"test-watch": "jest --watch",
"test": "TZ=America/New_York jest --ci --coverage",
"test-update": "TZ=America/New_York jest --update-snapshot",
"test-watch": "TZ=America/New_York jest --watch",
"ts:check": "tsc --noEmit"
},
"dependencies": {
Expand Down

0 comments on commit 5db0cea

Please sign in to comment.