mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
8af3f7332a
* Add testing framework * Test query period picking behaviour
14 lines
238 B
TypeScript
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()
|