File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 4444 "license" : " MIT" ,
4545 "dependencies" : {
4646 "@babel/runtime" : " ^7.5.5" ,
47- "@testing-library/dom" : " ^6.0.0"
47+ "@testing-library/dom" : " ^6.0.0" ,
48+ "@types/react-dom" : " *"
4849 },
4950 "devDependencies" : {
5051 "@reach/router" : " ^1.2.1" ,
Original file line number Diff line number Diff line change 11import { queries , Queries , BoundFunction } from '@testing-library/dom'
2+ import { act as reactAct } from 'react-dom/test-utils'
23
34export * from '@testing-library/dom'
45
@@ -43,4 +44,6 @@ export function cleanup(): void
4344 * If that's not available (older version of react) then it
4445 * simply calls the given callback immediately
4546 */
46- export function act ( callback : ( ) => void ) : void
47+ export const act : typeof reactAct extends undefined
48+ ? ( callback : ( ) => void ) => void
49+ : typeof reactAct
You can’t perform that action at this time.
0 commit comments