1 |
|
2 |
|
3 | import * as mocha from 'mocha';
|
4 | export declare const output: {
|
5 | readonly stdout: any;
|
6 | readonly stderr: any;
|
7 | };
|
8 | export 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 | }
|
20 | export declare type Describe = Settings<mocha.ISuiteCallbackContext, mocha.ISuite>;
|
21 | export declare type It = Settings<mocha.ITestCallbackContext, mocha.ITest>;
|
22 | declare const _describe: Settings<mocha.ISuiteCallbackContext, mocha.ISuite>;
|
23 | declare const _it: Settings<mocha.ITestCallbackContext, mocha.ITest>;
|
24 | declare const expect: Chai.ExpectStatic;
|
25 | export { _describe as describe, _it as it, expect };
|
26 | export * from './command';
|
27 | export * from './hook';
|