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 2779fd8 commit 65652c5Copy full SHA for 65652c5
types/__tests__/type-tests.ts
@@ -161,9 +161,7 @@ export async function testWaitFors() {
161
162
await waitFor(() => getByText(element, 'apple'))
163
await waitFor(() => getAllByText(element, 'apple'))
164
- const result: HTMLSpanElement = await waitFor(() =>
165
- getByText(element, 'apple'),
166
- )
+ const result: Element = await waitFor(() => getByText(element, 'apple'))
167
if (!result) {
168
// Use value
169
throw new Error(`Can't find result`)
@@ -185,4 +183,5 @@ export async function testWaitFors() {
185
183
/*
186
184
eslint
187
@typescript-eslint/no-unnecessary-condition: "off",
+ import/no-extraneous-dependencies: "off",
188
*/
0 commit comments