✗ npx jest --version 24.5.0
Got a set of jest tests that are timezone sensitive. We typically run them with an npm script: \"jest\": \"TZ=utc
\"jest\": \"TZ=utc
I just run into the same issue and I was able to resolve it by adding process.env.TZ = 'your/timezone'; to my jest.config.js.
process.env.TZ = 'your/timezone';
jest.config.js
Maybe this helps in your case as well :)
process.env.TZ = 'UTC'; module.exports = { ... };