From a7a4a743bc3de9d896bbed2ac7699c323a154d83 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Thu, 1 Sep 2022 19:22:15 +0000 Subject: [PATCH] Fix tests (#2040) --- package.json | 1 + scripts/jest-setup.js | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 scripts/jest-setup.js diff --git a/package.json b/package.json index c9ed29fc95..963d5d10d2 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "automock": false, "maxWorkers": 4, "testTimeout": 10000, + "globalSetup": "./scripts/jest-setup.js", "transform": { "^.+\\.tsx?$": "ts-jest" }, diff --git a/scripts/jest-setup.js b/scripts/jest-setup.js new file mode 100644 index 0000000000..3d1e8924fc --- /dev/null +++ b/scripts/jest-setup.js @@ -0,0 +1,3 @@ +module.exports = async () => { + process.env.TZ = 'UTC'; +};