From b2cfc746251fe394243cc43644c0afa92f22d6e2 Mon Sep 17 00:00:00 2001 From: Viren Mohindra <159165249+virenpepper@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:34:34 -0400 Subject: [PATCH] add `ByA11yState` to `ALL_QUERIES_METHODS` const - `prefer-screen-queries` was failing for destructured a11y queries Signed-off-by: Viren Mohindra <159165249+virenpepper@users.noreply.github.com> --- lib/utils/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/index.ts b/lib/utils/index.ts index cb0e8e03..4747a9d3 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -43,6 +43,7 @@ const ALL_QUERIES_METHODS = [ 'ByDisplayValue', 'ByRole', 'ByTestId', + 'ByA11yState', ]; const SYNC_QUERIES_COMBINATIONS = combineQueries(