Files
freeCodeCamp/client/jest-timezone-setup.js
Oliver Eyton-Williams cc79999a31 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 21:24:29 +05:30

4 lines
60 B
JavaScript

module.exports = async () => {
process.env.TZ = 'UTC';
};