Implement a good way to mock tests with timezone and DST dependencies #589
Labels
help wanted
Extra attention is needed
High Priority
High importance / High value
tech debt
Technical issues that we need to come back to
Pure tech debt item. We have a few unit tests (notably LocationService.spec.js and ExposureHistory.spec.js) that must mock the current datetime, but are sensitive to the timezone and daylight savings time. We need to come up with a good solution for unit testing the edge cases around these tests, as well as ensuring that the tests don't have any lurking system time / timezone sensitivity.
The text was updated successfully, but these errors were encountered: