1 | import { expect } from './chai';
|
2 | import * as FancyTypes from './types';
|
3 | export declare const fancy: FancyTypes.Base<FancyTypes.Context, {
|
4 | skip: {
|
5 | output: unknown;
|
6 | args: [];
|
7 | };
|
8 | } & {
|
9 | only: {
|
10 | output: unknown;
|
11 | args: [];
|
12 | };
|
13 | } & {
|
14 | retries: {
|
15 | output: unknown;
|
16 | args: [count: number];
|
17 | };
|
18 | } & {
|
19 | catch: {
|
20 | output: {
|
21 | error: Error;
|
22 | };
|
23 | args: [arg: string | RegExp | ((err: Error) => any), opts?: {
|
24 | raiseIfNotThrown?: boolean | undefined;
|
25 | } | undefined];
|
26 | };
|
27 | } & {
|
28 | env: {
|
29 | output: unknown;
|
30 | args: [env: {
|
31 | [k: string]: string | null | undefined;
|
32 | }, opts?: FancyTypes.EnvOptions | undefined];
|
33 | };
|
34 | } & {
|
35 | stub: {
|
36 | output: {
|
37 | stubs: any[];
|
38 | };
|
39 | args: [object: any, path: any, value: () => any];
|
40 | };
|
41 | } & {
|
42 | stdin: {
|
43 | output: unknown;
|
44 | args: [input: string, delay?: number | undefined];
|
45 | };
|
46 | } & {
|
47 | stderr: {
|
48 | output: {
|
49 | readonly stderr: string;
|
50 | };
|
51 | args: [opts?: {
|
52 | print?: boolean | undefined;
|
53 | stripColor?: boolean | undefined;
|
54 | } | undefined];
|
55 | };
|
56 | } & {
|
57 | stdout: {
|
58 | output: {
|
59 | readonly stdout: string;
|
60 | };
|
61 | args: [opts?: {
|
62 | print?: boolean | undefined;
|
63 | stripColor?: boolean | undefined;
|
64 | } | undefined];
|
65 | };
|
66 | } & {
|
67 | nock: {
|
68 | output: {
|
69 | nock: number;
|
70 | };
|
71 | args: [host: string, options: FancyTypes.NockOptions | FancyTypes.NockCallback, cb?: FancyTypes.NockCallback | undefined];
|
72 | };
|
73 | } & {
|
74 | timeout: {
|
75 | output: {
|
76 | timeout: number;
|
77 | };
|
78 | args: [timeout?: number | undefined];
|
79 | };
|
80 | }>;
|
81 | export declare type Fancy = typeof fancy;
|
82 | export { expect, FancyTypes, };
|
83 | export default fancy;
|