UNPKG

1.81 kBTypeScriptView Raw
1import { expect } from './chai';
2import * as FancyTypes from './types';
3export 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: [number];
17 };
18} & {
19 catch: {
20 output: {
21 error: Error;
22 };
23 args: [string | RegExp | ((err: Error) => any), ({
24 raiseIfNotThrown?: boolean | undefined;
25 } | undefined)?];
26 };
27} & {
28 env: {
29 output: unknown;
30 args: [{
31 [k: string]: string | null | undefined;
32 }, (FancyTypes.EnvOptions | undefined)?];
33 };
34} & {
35 stub: {
36 output: {
37 stubs: any[];
38 };
39 args: [any, any, () => any];
40 };
41} & {
42 stdin: {
43 output: unknown;
44 args: [string, (number | undefined)?];
45 };
46} & {
47 stderr: {
48 output: {
49 readonly stderr: string;
50 };
51 args: [({
52 print?: boolean | undefined;
53 stripColor?: boolean | undefined;
54 } | undefined)?];
55 };
56} & {
57 stdout: {
58 output: {
59 readonly stdout: string;
60 };
61 args: [({
62 print?: boolean | undefined;
63 stripColor?: boolean | undefined;
64 } | undefined)?];
65 };
66} & {
67 nock: {
68 output: {
69 nock: number;
70 };
71 args: [string, FancyTypes.NockOptions | FancyTypes.NockCallback, (FancyTypes.NockCallback | undefined)?];
72 };
73} & {
74 timeout: {
75 output: {
76 timeout: number;
77 };
78 args: [(number | undefined)?];
79 };
80}>;
81export declare type Fancy = typeof fancy;
82export { expect, FancyTypes, };
83export default fancy;