Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 250173f

Browse files
committed
test: fix type checking issue around waitFor
1 parent 996f7b9 commit 250173f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('lib/index.ts', () => {
6161
it('should use `wait` properly', async () => {
6262
const {getByText} = getQueriesForElement(await getDocument(page))
6363
// eslint-disable-next-line @typescript-eslint/no-misused-promises
64-
await waitFor(() => getByText('Loaded!'), {timeout: 7000})
64+
await waitFor(async () => expect(await getByText('Loaded!')).toBeTruthy(), {timeout: 7000})
6565
expect(await getByText('Loaded!')).toBeTruthy()
6666
}, 9000)
6767
})

0 commit comments

Comments
 (0)