import { useEffect } from 'react' ; describe ( 'skip auto cleanup (pure) tests' , ( ) => { runForRenderers ( [ 'default/pure' , 'dom/pure' , 'native/pure' , 'server/hydrated/pure' ] , ( { renderHook } ) => { let cleanupCalled = false ; test ( 'first' , ( ) => { const useHookWithCleanup = ( ) => { useEffect ( ( ) => { return ( ) => { cleanupCalled = true ; } ; } ) ; } ; renderHook ( ( ) => useHookWithCleanup ( ) ) ; } ) ; test ( 'second' , ( ) => { expect ( cleanupCalled ) . toBe ( false ) ; } ) ; } ) ; } ) ;