diff --git a/package.json b/package.json index 1a174c48f4..35a8c9c45a 100644 --- a/package.json +++ b/package.json @@ -195,6 +195,7 @@ "testMatch": [ "/test/**/*-test.[jt]s?(x)" ], + "globalSetup": "/test/globalSetup.js", "setupFiles": [ "jest-canvas-mock" ], diff --git a/test/globalSetup.js b/test/globalSetup.js new file mode 100644 index 0000000000..3d1e8924fc --- /dev/null +++ b/test/globalSetup.js @@ -0,0 +1,3 @@ +module.exports = async () => { + process.env.TZ = 'UTC'; +};