We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef03a42 commit 808104cCopy full SHA for 808104c
test/components/connect.spec.tsx
@@ -845,8 +845,10 @@ describe('React', () => {
845
<OuterComponent ref={outerComponent} />
846
</ProviderMock>
847
)
848
- outerComponent.current!.setFoo('BAR')
849
- outerComponent.current!.setFoo('DID')
+ rtl.act(() => {
+ outerComponent.current!.setFoo('BAR')
850
+ outerComponent.current!.setFoo('DID')
851
+ })
852
853
expect(invocationCount).toEqual(1)
854
})
0 commit comments