add a testTZ
/testTimeZone
config value like testURL
but for setting a timezone tests should run in
#9103
Labels
testTZ
/testTimeZone
config value like testURL
but for setting a timezone tests should run in
#9103
#8497 🚀 Feature Proposal
Motivation
Enforcing a consistent timezone in an easily configurable way just like setting a base URL.
Example
Pitch
Sometimes even with mocks you run into problems of you and another dev in another timezone producing different results because of your computer timezones. You could do something like
TZ=foo jest
as a workaround and put that in your package.json as well but then if you have a Windows user doing dev you now need something likecross-env
to work around the variables.The text was updated successfully, but these errors were encountered: