Question · JavaScript and TypeScript course · Module 11: Testing with Jest
Fake Timers in Jest
Which Jest method allows you to advance fake time by a specified number of milliseconds?
Answer options
- jest.skipTime(ms)
- jest.fastForward(ms)
- jest.moveTime(ms)
- jest.advanceTimersByTime(ms)
You can check the correct answer by solving this task in the CodeWorlds game.