Skip to content

Commit 65652c5

Browse files
committed
fix(types): update test
1 parent 2779fd8 commit 65652c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

types/__tests__/type-tests.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ export async function testWaitFors() {
161161

162162
await waitFor(() => getByText(element, 'apple'))
163163
await waitFor(() => getAllByText(element, 'apple'))
164-
const result: HTMLSpanElement = await waitFor(() =>
165-
getByText(element, 'apple'),
166-
)
164+
const result: Element = await waitFor(() => getByText(element, 'apple'))
167165
if (!result) {
168166
// Use value
169167
throw new Error(`Can't find result`)
@@ -185,4 +183,5 @@ export async function testWaitFors() {
185183
/*
186184
eslint
187185
@typescript-eslint/no-unnecessary-condition: "off",
186+
import/no-extraneous-dependencies: "off",
188187
*/

0 commit comments

Comments
 (0)