analytics/assets/test-utils/set-fixed-timezone.ts
Artur Pata 8af3f7332a
Add testing framework (#4440)
* Add testing framework

* Test query period picking behaviour
2024-08-15 12:27:22 +03:00

14 lines
238 B
TypeScript

/**
* @format
*/
/**
* @returns sets a fixed timezone for the test process,
* otherwise test runs on different servers and machines may be inconsistent
*/
function setFixedTimezone() {
process.env.TZ = 'UTC'
}
setFixedTimezone()