lite-unit-test
Version:
Its a wrapper tool to build unit test in node with the native assert library
18 lines (17 loc) • 489 B
TypeScript
export type LightTestModule = {
[key: string]: (cb: () => void) => void;
};
export type LightTest = {
[key: string]: LightTestModule;
};
declare class TestEngine {
tests: LightTest;
prepareEnviroment: () => Promise<void>;
constructor();
setEnviroment(fn: () => Promise<void>): void;
addTestModule(name: string, module: LightTestModule): void;
private countTests;
runTests(): Promise<void>;
}
declare const _default: TestEngine;
export default _default;