()
| 68 | } |
| 69 | |
| 70 | function getActFn() { |
| 71 | if ( |
| 72 | !( |
| 73 | typeof window !== "undefined" && |
| 74 | // @ts-expect-error |
| 75 | window.IS_REACT_ACT_ENVIRONMENT |
| 76 | ) |
| 77 | ) { |
| 78 | return undefined; |
| 79 | } |
| 80 | // biome-ignore lint/suspicious/noTsIgnore: Needed for compatibility with multiple React versions |
| 81 | // @ts-ignore |
| 82 | return typeof React.act === "function" |
| 83 | ? // @ts-ignore |
| 84 | React.act |
| 85 | : DeprecatedReactTestUtils.act; |
| 86 | } |
| 87 | |
| 88 | function warnOnMissingSetup() { |
| 89 | if (isMocking()) return; |
no outgoing calls
no test coverage detected
searching dependent graphs…