We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b62fd commit 0fee280Copy full SHA for 0fee280
src/test-utils.ts
@@ -43,9 +43,9 @@ function getActFn() {
43
) {
44
return undefined;
45
}
46
-
+ // @ts-ignore - Older versions of React don't have the `act` method, so TypeScript will complain about it
47
return typeof React.act === "function"
48
- ? // @ts-ignore - Older versions of React don't have the `act` method, so TypeScript will complain about it
+ ? // @ts-ignore
49
React.act
50
: DeprecatedReactTestUtils.act;
51
0 commit comments