Set Jest's timezone to UTC (#7670)

This commit is contained in:
Mac Siri 2020-05-04 14:10:46 -04:00 committed by GitHub
parent 930ccdccf5
commit f75bcf8673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,7 @@
// Consistent timezone for testing.
// This does not work on windows, see https://github.com/nodejs/node/issues/4230
process.env.TZ = 'UTC';
module.exports = {
collectCoverageFrom: [
'app/javascript/**/*.{js,jsx}',