Skip to content

Commit

Permalink
chore: ignore both instances of React.act
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Dec 30, 2024
1 parent d4b62fd commit 0fee280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ function getActFn() {
) {
return undefined;
}

// @ts-ignore - Older versions of React don't have the `act` method, so TypeScript will complain about it
return typeof React.act === "function"
? // @ts-ignore - Older versions of React don't have the `act` method, so TypeScript will complain about it
? // @ts-ignore
React.act
: DeprecatedReactTestUtils.act;
}
Expand Down

0 comments on commit 0fee280

Please sign in to comment.