calcom/cal.com

[CAL-3672] Timezone dependent unit tests fail when not on UTC

Opened this issue · 0 comments

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

image.png

If I try running from UTC then all errors go away:

 TZ=UTC yarn test

image.png

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