Skip to content

Commit 29eed0a

Browse files
committed
Fix failing stopwatch test
1 parent 2602c59 commit 29eed0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/__tests__/stopwatch.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ test('updates component state', async () => {
2424
expect(elapsedTime).toHaveTextContent('0ms')
2525

2626
await fireEvent.click(startButton)
27+
await wait()
2728
await fireEvent.click(startButton)
2829

2930
expect(elapsedTime).not.toHaveTextContent('0ms')

0 commit comments

Comments
 (0)