@testing-library/react-hooks
Version:
Simple and complete React hooks testing utilities that encourage good testing practices.
7 lines (6 loc) • 334 B
TypeScript
import { CleanupCallback } from '../types';
declare function cleanup(): Promise<void>;
declare function addCleanup(callback: CleanupCallback): () => void;
declare function removeCleanup(callback: CleanupCallback): void;
declare function autoRegisterCleanup(): void;
export { cleanup, addCleanup, removeCleanup, autoRegisterCleanup };