quickpickle
Version:
Plugin for Vitest to run tests written in Gherkin Syntax.
17 lines (16 loc) • 641 B
TypeScript
type HookFunction = (state: any) => Promise<void>;
interface Hook {
name: string;
f: HookFunction;
tags: string;
tagsFunction: (tags: string[]) => boolean;
}
export declare const applyHooks: (hooksName: string, state: any) => Promise<void>;
type AddHookFunction = (p1: string | Hook | HookFunction, p2?: HookFunction) => void;
export declare const BeforeAll: AddHookFunction;
export declare const Before: AddHookFunction;
export declare const BeforeStep: AddHookFunction;
export declare const AfterAll: AddHookFunction;
export declare const After: AddHookFunction;
export declare const AfterStep: AddHookFunction;
export {};