From 24171677368cc0194111e382810876631f60e8e7 Mon Sep 17 00:00:00 2001 From: kaznak Date: Sun, 7 Feb 2021 21:56:19 +0900 Subject: [PATCH] one fix --- test/pages/counter.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pages/counter.test.tsx b/test/pages/counter.test.tsx index bd7363c..347dd1c 100644 --- a/test/pages/counter.test.tsx +++ b/test/pages/counter.test.tsx @@ -7,10 +7,10 @@ describe('Counter', () => { expect(screen.getByText('0', { selector: 'p' })) }) - it('Pressing `+` button increments the counter.', () => { + it('Pressing `+` button increments the counter.', async () => { render() expect(screen.getByText('0', { selector: 'p' })) - act(() => { + await act(async () => { fireEvent.click(screen.getByText('+', { selector: 'button' })) }) expect(screen.getByText('1', { selector: 'p' }))