chromogen
Version:
simple, interaction-driven Jest test generator for Recoil and React Hooks apps
7 lines (6 loc) • 463 B
TypeScript
import type { Transaction, InitialRender } from '../types';
export declare function importZustandStore(): string;
export declare function testInitialState(initialRender: InitialRender): string;
export declare function testStateChangesAct(transactions: Transaction<any>[]): string;
export declare function testStateChangesExpect([propertyName, newValue]: [string, any]): string;
export declare function generateActLine<T extends any[]>(t: Transaction<T>): string;