e2ed
Version:
E2E testing framework over Playwright
19 lines (18 loc) • 494 B
TypeScript
import type { LogEventType } from '../constants/internal';
import type { LogPayload } from './log';
import type { MaybePromise } from './promise';
import type { Void } from './undefined';
/**
* Body function of step.
*/
export type StepBody = () => MaybePromise<LogPayload | Void>;
/**
* Options of `step` function.
*/
export type StepOptions = Readonly<{
payload?: LogPayload;
runPlaywrightStep?: boolean;
skipLogs?: boolean;
timeout?: number;
type?: LogEventType;
}>;