UNPKG

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