mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 18:55:58 +03:00
Fix TimeZone to be UTC in Jest tests (#7082)
This commit is contained in:
parent
558a6204f1
commit
7a203461f7
2 changed files with 4 additions and 0 deletions
|
@ -195,6 +195,7 @@
|
||||||
"testMatch": [
|
"testMatch": [
|
||||||
"<rootDir>/test/**/*-test.[jt]s?(x)"
|
"<rootDir>/test/**/*-test.[jt]s?(x)"
|
||||||
],
|
],
|
||||||
|
"globalSetup": "<rootDir>/test/globalSetup.js",
|
||||||
"setupFiles": [
|
"setupFiles": [
|
||||||
"jest-canvas-mock"
|
"jest-canvas-mock"
|
||||||
],
|
],
|
||||||
|
|
3
test/globalSetup.js
Normal file
3
test/globalSetup.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = async () => {
|
||||||
|
process.env.TZ = 'UTC';
|
||||||
|
};
|
Loading…
Reference in a new issue