Skip to content

Commit

Permalink
chore(tests): wait to assert no changes were made
Browse files Browse the repository at this point in the history
  • Loading branch information
YPAzevedo committed Feb 19, 2021
1 parent af54a6f commit 086283a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/basic.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,5 +367,6 @@ it('should not trigger re-render when mutating object wrapped in ref', async ()
await findByText('count: 0')

fireEvent.click(getByText('button'))
await Promise.resolve()
await findByText('count: 0')
})

0 comments on commit 086283a

Please sign in to comment.