[CAL-3672] Timezone dependent unit tests fail when not on UTC #14964
Labels
automated-tests
area: unit tests, e2e tests, playwright
🐛 bug
Something isn't working
High priority
Created by Linear-GitHub Sync
Milestone
Many of the European team folk wont face this issue. But the American team cannot consistently run unit tests locally. We get 4 or 5 failed tests. To replicate, try running tests with the MST timezone (the current TZ I have):
TZ=MST yarn test
If I try running from UTC then all errors go away:
TZ=UTC yarn test
IMO all testing should be time zone agnostic. If we're testing TZ changes we should mock and clean them up properly. But the machine where the tests are ran from should not interfere with the results.
From SyncLinear.com | CAL-3672
The text was updated successfully, but these errors were encountered: