From 426465be3bb39f7a90494aa2ddc8389bf4359160 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Date: Tue, 18 Oct 2022 12:06:40 +0300 Subject: [PATCH] ESLint: Fix testing-library/prefer-presence-queries violations --- packages/viewport/src/test/if-viewport-matches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/viewport/src/test/if-viewport-matches.js b/packages/viewport/src/test/if-viewport-matches.js index fcf1d168067dd9..a8b7c4717f7296 100644 --- a/packages/viewport/src/test/if-viewport-matches.js +++ b/packages/viewport/src/test/if-viewport-matches.js @@ -40,6 +40,6 @@ describe( 'ifViewportMatches()', () => { expect( useViewportMatch ).toHaveBeenCalledWith( 'wide', '>=' ); - expect( screen.queryByText( 'Hello' ) ).toBeInTheDocument(); + expect( screen.getByText( 'Hello' ) ).toBeInTheDocument(); } ); } );