We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 885c960 commit cd58687Copy full SHA for cd58687
types/index.d.ts
@@ -8,6 +8,7 @@ import {
8
Config as ConfigDTL,
9
} from '@testing-library/dom'
10
import {act as reactDeprecatedAct} from 'react-dom/test-utils'
11
+//@ts-ignore
12
import {act as reactAct} from 'react'
13
14
export * from '@testing-library/dom'
@@ -250,6 +251,6 @@ export function cleanup(): void
250
251
* If that's not available (older version of react) then it
252
* simply calls the deprecated version which is ReactTestUtils.act(cb)
253
*/
-export const act: typeof reactAct extends undefined
254
+export const act: typeof reactAct extends never
255
? typeof reactDeprecatedAct
256
: typeof reactAct
0 commit comments