Skip to content

Commit 9390e80

Browse files
committed
Fix rerender typing test
1 parent b107a9c commit 9390e80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export async function testRender() {
2828
// helpers
2929
const {container, baseElement, unmount, debug, rerender} = page
3030

31-
await rerender({a: 1}) // $ExpectType Promise<void>
31+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
32+
rerender({a: 1}) // $ExpectType Promise<void>
3233

3334
debug() // $ExpectType void
3435
debug(container) // $ExpectType void

0 commit comments

Comments
 (0)