Replies: 1 comment
-
We use faketimers in our tests, maybe this is something you can look into: https://www.npmjs.com/package/@sinonjs/fake-timers |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When testing it is very useful to be able to control time. We have a module that can change the 'internal clock' of the server and emulate the time to be in present or future. This is very helpful when testing if certain action that needs to happen X minutes/hours/days from now will actually happen.
Is it possible to change the system time inside Bullmq when running the server?
Beta Was this translation helpful? Give feedback.
All reactions