sigveio
sigveio
If you are using Jest 27 with its new default timer implementation, the current documentation is - as mentioned above - outdated. I have a draft for updated documentation in...
> Why wouldn’t I be able to spy on a global function? I understand how this could lead to testing internals of an implementation that might not contribute to a...
Oh, and @kleinfreund, I almost forgot; there's also `jest.advanceTimersToNextTimer()` that would allow you to step through the timers sequentially
🙌 `global` is more environment agnostic than `window` here - e.g. working in both `node` and `jsdom`