Allowing npm tests to run in UTC timezone.
This is needed because we have a jest test that checks a DateTime formatter function.
However it formats the date time to the local machines timezone, which causes the test to fail.
This change fixes that failing test no matter which time zone the tests are run.
Details
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) Restricted Project - Commits
- rABCa0d16b267c32: added timezone constant for all npm tests
Change your machines to different time zones and run the npm tests.
bash cd bitcoin-abc/web/cashtab npm i npm test # all tests should pass!
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable