UNPKG

testplane

Version:

Tests framework based on mocha and wdio

14 lines (13 loc) 584 B
import { TestStep } from "../../types"; import { TimeTravelMode } from "../../config"; type HookFunctions<T> = { fn: () => T; before: () => void; after: () => void; error: (err: unknown) => unknown; }; export declare const normalizeCommandArgs: (commandName: string, args?: unknown[]) => string[]; export declare const isGroup: (node: TestStep) => boolean; export declare const runWithHooks: <T>({ fn, before, after, error }: HookFunctions<T>) => T; export declare const shouldRecordSnapshots: (timeTravelMode: TimeTravelMode, isRetry: boolean) => boolean; export {};