UNPKG

kizu

Version:

An easy-to-use, fast, and defensive Typescript/Javascript test runner designed to help you to write simple, readable, and maintainable tests.

15 lines (14 loc) 430 B
import { AssertionAPI } from './assertions'; import { ErrorObject } from 'serialize-error'; export type TestResults = { description: string; assertions: Assertion[]; error?: ErrorObject; }; export type Assertion = { pass: boolean; description: string; diagnostic?: string; stack?: string; }; export declare function test(description: string, experiment: (assert: AssertionAPI) => void): Promise<void>;