-
-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
Currently, Timekeeper only supports physical wall-clock time (it uses Date.now() and setInterval()), and there's no way to provide a fake version in tests.
Ideally, we'd have some way to provide the current time from outside in a test (Date.now()) as well as a way to control when callbacks passed to setInterval() fire.
Jest provides timer mocks which can help, but they require knowing the implementation of Timekeeper in order to function.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels