worker-testbed
Version:
The AI-ready testbed which use Worker Threads to create isolated vm context
11 lines (8 loc) • 347 B
TypeScript
import * as functools_kit from 'functools-kit';
interface ITest {
pass(msg?: string): void;
fail(msg?: string): void;
}
declare const test: (testName: string, cb: (t: ITest) => void) => Promise<void>;
declare const run: ((__filename: string, cb?: () => void) => Promise<void>) & functools_kit.ISingleshotClearable;
export { run, test };