@typed/test
Version:
Simple test framework
13 lines (12 loc) • 538 B
TypeScript
import { Test, TestCollection, TestResults } from '../types';
export declare const describe: DescribeFn;
export interface DescribeFn {
(what: string, tests: Array<Test | TestCollection>): TestCollection;
(what: string): (tests: Array<Test | TestCollection>) => TestCollection;
}
export declare class Describe implements TestCollection {
name: string;
tests: ReadonlyArray<Test | TestCollection>;
constructor(name: string, tests: ReadonlyArray<Test | TestCollection>);
run(timeout: number): Promise<TestResults>;
}