UNPKG

610 BTypeScriptView Raw
1export { expect } from "chai";
2declare type Done = (err?: any) => void;
3/** Callback function used for tests and hooks. */
4declare type Func = (done: Done) => void;
5/** Async callback function used for tests and hooks. */
6declare type AsyncFunc = () => PromiseLike<any>;
7declare global {
8 function describe(name: string, fn: () => void): void;
9 function it(name: string, fn: Func | AsyncFunc): void;
10 function before(fn: Func | AsyncFunc): void;
11 function beforeEach(fn: Func | AsyncFunc): void;
12 function after(fn: Func | AsyncFunc): void;
13 function afterEach(fn: Func | AsyncFunc): void;
14}