@power-doctest/tester
Version:
A Test Runner for A power-doctest.
13 lines (12 loc) • 357 B
TypeScript
export interface PowerDoctestRunnerOptions {
filePath?: string;
context?: {
[index: string]: any;
};
console?: boolean;
timeout?: number;
runMode?: "any" | "all";
preTransform?: (code: string) => string;
powerDoctestCallbackFunctionName?: string;
}
export declare function run(code: string, options?: PowerDoctestRunnerOptions): Promise<unknown>;