Logo
Explore Help
Sign In
gaspersic/freeCodeCamp
1
0
Fork 0
You've already forked freeCodeCamp
Code Issues Pull Requests Projects Releases Wiki Activity
Files
02f5609c9976ac914d2a3ed144cd06bc3fe420ec
freeCodeCamp/client/jest-timezone-setup.js

4 lines
60 B
JavaScript
Raw Normal View History

fix: force timezone to be UTC for tests (#38215) react-calendar-heatmap's output depends on the timezone, which means that snapshots can fail if the timezone changes. This sets the timezone as UTC during client tests to avoid that problem.
2020-02-14 16:54:29 +01:00
module.exports = async () => {
process.env.TZ = 'UTC';
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 154ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses