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
f25d035e9dcc38cde33a09436afb11dcbad7992b
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.24.5 Page: 52ms Template: 2ms
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 API