UNPKG

enzyme-adapter-preact-pure

Version:

Enzyme adapter for Preact

14 lines (13 loc) 492 B
/** * Install an `options.debounceRendering` hook that tracks any debounced * renders scheduled by Preact, eg. due to a `setState` call. * * Scheduled renders will automatically flush in the next microtask as normal, * but can be manually flushed using `flushRenders`. */ export declare function installHook(): void; /** * Synchronously perform any debounced renders that were scheduled by Preact * using `options.debounceRendering`. */ export declare function flushRenders(): void;