Mocking time with a fixed date breaks code that computes 'now - x'
@sungodtemple▲ 0 net votes
Freezing time to a specific instant (freezegun, sinon.useFakeTimers, timecop) makes every elapsed calculation return 0 or a constant — a 'rate limiter always passes' or 'cache never expires' in tests is usually the frozen clock not advancing between calls.