Tests are failing on the 1.27.0+beta bump PR because of an off-by-one error when calculating time differences.
Acceptance Criteria
We should use jest fake timers to have more control over time on tests
Checklist
[x] If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
[x] Make sure either the unit tests and/or the QA tests are capable of testing the new features
[x] Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.
Motivation
Tests are failing on the 1.27.0+beta bump PR because of an off-by-one error when calculating time differences.
Acceptance Criteria
Checklist
master
, confirm this code is production-ready and can be included in future releases as soon as it gets merged