Closed sokyrynskyi closed 9 months ago
Hi, @sokyrynskyi! AFAIK, there is nothing in the docs that says creating a new date instance should advance time.
tells lolex to increment mocked time automatically based on the real system time shift
To be honest, that would be quite contra-intuitive, as you can create several hundred thousands of date instance per second, so deciding what should the granularity be would be a task upon itself.
You can see examples of how this is being used in the docs.
What did you expect to happen?
Each time
new Date()
is called -- the value is advanced according to the config.What actually happens
The value is always the same.
How to reproduce