test: actually pass TZ from the running script - #79457
Conversation
The `jest.config.js` force-defines timezone to `UTC`; however, the date tests run a matrix to set timezone to different values: https://github.com/WordPress/gutenberg/blob/a7fcec777038a55e00599eaceb4db25310f4a9c8/bin/unit-test-date.sh#L17 This patch makes sure that the date tests actually test in different timezones.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
@Mamaduka I assume date tests want to exercise different timezones, but jest config was forcing everything in |
|
Yup, if I remember correctly, we were setting the time zone to UTC in order to allow DateCalendar (and related components) tests to run reliably on every machine, instead of using local time. |
The
jest.config.jsforce-defines timezone toUTC; however, thedate tests run a matrix to set timezone to different values:
gutenberg/bin/unit-test-date.sh
Line 17 in a7fcec7
This patch makes sure that the date tests actually test in different
timezones.