diff --git a/src/test-utils.ts b/src/test-utils.ts index 389f8136..d84d5be1 100644 --- a/src/test-utils.ts +++ b/src/test-utils.ts @@ -1,11 +1,11 @@ -import * as React from 'react' -import * as DeprecatedReactTestUtils from 'react-dom/test-utils' +import * as React from 'react'; +import * as DeprecatedReactTestUtils from 'react-dom/test-utils'; declare global { var IS_REACT_ACT_ENVIRONMENT: boolean; } -const act = typeof React.act === 'function' ? React.act : DeprecatedReactTestUtils.act +const act = typeof React.act === 'function' ? React.act : DeprecatedReactTestUtils.act; type Item = { callback: IntersectionObserverCallback;