diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-04-26 15:36:34 +0200 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-05-02 12:54:55 +0200 |
commit | 99156dd76048f514dbb26b6d46116d13f726b2c3 (patch) | |
tree | f7ebae8ad714eeedeb09e888315a1ef5beeb8cf1 /jest.config.js | |
parent | 26108ddb119a910c4d03cc128f81adb0c0e88cc1 (diff) | |
download | gitlab-ce-99156dd76048f514dbb26b6d46116d13f726b2c3.tar.gz |
Set timezone to GMT in Jest config59952
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js index 0868547e654..84481642250 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,6 +2,10 @@ const IS_EE = require('./config/helpers/is_ee_env'); const reporters = ['default']; +// To have consistent date time parsing both in local and CI environments we set +// the timezone of the Node process. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27738 +process.env.TZ = 'GMT'; + if (process.env.CI) { reporters.push([ 'jest-junit', |