From 979e4c7e21816f1c5b4762342320f0658e66eaf6 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 11 Oct 2024 19:27:59 +0200 Subject: [PATCH] fix: `syncQueries` should contain `query`, not `find` --- src/renderStream/syncQueries.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderStream/syncQueries.ts b/src/renderStream/syncQueries.ts index cafe3c67f..7b83170d0 100644 --- a/src/renderStream/syncQueries.ts +++ b/src/renderStream/syncQueries.ts @@ -5,14 +5,14 @@ export {Queries} from '@testing-library/dom' type OriginalQueries = typeof queries export type SyncQueries = { - [K in keyof OriginalQueries as K extends `${'query'}${string}` + [K in keyof OriginalQueries as K extends `${'find'}${string}` ? never : K]: OriginalQueries[K] } export const syncQueries = Object.fromEntries( Object.entries(queries).filter( - ([key]) => key.startsWith('get') || key.startsWith('find'), + ([key]) => key.startsWith('get') || key.startsWith('query'), ), ) as any as SyncQueries