UNPKG

jest-watch-suspend

Version:
23 lines (22 loc) 653 B
/// <reference types="jest" /> export interface Config { 'suspend-on-start': boolean; key: string; prompt: string; } export declare type JestGlobalConfigUsed = Pick<jest.GlobalConfig, 'verbose'>; export declare class WatchSuspendPlugin { globalConfig: Partial<JestGlobalConfigUsed>; log: (message?: any, ...optionalParams: any[]) => void; config: Config; suspend: boolean; constructor({ config }: { config: Partial<Config>; }); apply(jestHooks: any): void; getUsageInfo(): { key: string; prompt: string; }; run(globalConfig: Partial<JestGlobalConfigUsed>): Promise<boolean>; }