UNPKG

992 BTypeScriptView Raw
1/// <reference types="mocha" />
2/// <reference types="chai" />
3import * as mocha from 'mocha';
4export declare const output: {
5 readonly stdout: any;
6 readonly stderr: any;
7};
8export interface Settings<T, U> {
9 (description: string, cb: (this: T) => void): U;
10 stdout: Settings<T, U>;
11 stderr: Settings<T, U>;
12 only: Settings<T, U>;
13 skip: Settings<T, U>;
14 print: Settings<T, U>;
15 mock(object: any, path: string, value: any): Settings<T, U>;
16 env(env?: {
17 [k: string]: string;
18 }): Settings<T, U>;
19}
20export declare type Describe = Settings<mocha.ISuiteCallbackContext, mocha.ISuite>;
21export declare type It = Settings<mocha.ITestCallbackContext, mocha.ITest>;
22declare const _describe: Settings<mocha.ISuiteCallbackContext, mocha.ISuite>;
23declare const _it: Settings<mocha.ITestCallbackContext, mocha.ITest>;
24declare const expect: Chai.ExpectStatic;
25export { _describe as describe, _it as it, expect };
26export * from './command';
27export * from './hook';