Skip to content

Commit 0fee280

Browse files
committed
chore: ignore both instances of React.act
1 parent d4b62fd commit 0fee280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ function getActFn() {
4343
) {
4444
return undefined;
4545
}
46-
46+
// @ts-ignore - Older versions of React don't have the `act` method, so TypeScript will complain about it
4747
return typeof React.act === "function"
48-
? // @ts-ignore - Older versions of React don't have the `act` method, so TypeScript will complain about it
48+
? // @ts-ignore
4949
React.act
5050
: DeprecatedReactTestUtils.act;
5151
}

0 commit comments

Comments
 (0)