chore(test): set timezone to UTC (#11247)

Fixes #11246

To mitigate timezone discrepancies with timestamps in tests with hard coded assertions, standardize on UTC

Co-authored-by: Mike Guida <mike@mguida.com>
This commit is contained in:
Doug Ayers 2025-03-12 11:56:33 -05:00 committed by GitHub
parent deb0e81398
commit ba47b62379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,9 @@ import "source-map-support/register"
import "reflect-metadata"
import * as chai from "chai"
// Tests assume UTC time zone when formatting/parsing dates.
process.env.TZ = "UTC"
chai.should()
chai.use(require("sinon-chai"))
chai.use(require("chai-as-promised"))