Skip to content

Commit 503abd7

Browse files
authored
docs: fix setTimeout example
Based on #11447 (comment)
1 parent e7edb75 commit 503abd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

website/versioned_docs/version-27.2/TimerMocks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = timerGame;
2525
'use strict';
2626

2727
jest.useFakeTimers();
28+
jest.spyOn(global, 'setTimeout');
2829

2930
test('waits 1 second before ending the game', () => {
3031
const timerGame = require('../timerGame');

0 commit comments

Comments
 (0)