1 | import { Config } from '@oclif/core';
|
2 | import { expect, FancyTypes } from 'fancy-test';
|
3 | import { command } from './command';
|
4 | import { loadConfig } from './load-config';
|
5 | export declare const test: FancyTypes.Base<FancyTypes.Context, {
|
6 | skip: {
|
7 | output: unknown;
|
8 | args: [];
|
9 | };
|
10 | } & {
|
11 | only: {
|
12 | output: unknown;
|
13 | args: [];
|
14 | };
|
15 | } & {
|
16 | retries: {
|
17 | output: unknown;
|
18 | args: [count: number];
|
19 | };
|
20 | } & {
|
21 | catch: {
|
22 | output: {
|
23 | error: Error;
|
24 | };
|
25 | args: [arg: string | RegExp | ((err: Error) => any), opts?: {
|
26 | raiseIfNotThrown?: boolean | undefined;
|
27 | } | undefined];
|
28 | };
|
29 | } & {
|
30 | env: {
|
31 | output: unknown;
|
32 | args: [env: {
|
33 | [k: string]: string | null | undefined;
|
34 | }, opts?: FancyTypes.EnvOptions | undefined];
|
35 | };
|
36 | } & {
|
37 | stub: {
|
38 | output: {
|
39 | stubs: any[];
|
40 | };
|
41 | args: [object: any, path: any, value: () => any];
|
42 | };
|
43 | } & {
|
44 | stdin: {
|
45 | output: unknown;
|
46 | args: [input: string, delay?: number | undefined];
|
47 | };
|
48 | } & {
|
49 | stderr: {
|
50 | output: {
|
51 | readonly stderr: string;
|
52 | };
|
53 | args: [opts?: {
|
54 | print?: boolean | undefined;
|
55 | stripColor?: boolean | undefined;
|
56 | } | undefined];
|
57 | };
|
58 | } & {
|
59 | stdout: {
|
60 | output: {
|
61 | readonly stdout: string;
|
62 | };
|
63 | args: [opts?: {
|
64 | print?: boolean | undefined;
|
65 | stripColor?: boolean | undefined;
|
66 | } | undefined];
|
67 | };
|
68 | } & {
|
69 | nock: {
|
70 | output: {
|
71 | nock: number;
|
72 | };
|
73 | args: [host: string, options: FancyTypes.NockOptions | FancyTypes.NockCallback, cb?: FancyTypes.NockCallback | undefined];
|
74 | };
|
75 | } & {
|
76 | timeout: {
|
77 | output: {
|
78 | timeout: number;
|
79 | };
|
80 | args: [timeout?: number | undefined];
|
81 | };
|
82 | } & {
|
83 | loadConfig: {
|
84 | output: {
|
85 | config: import("@oclif/core/lib/interfaces").Config;
|
86 | };
|
87 | args: [opts?: loadConfig.Options | undefined];
|
88 | };
|
89 | } & {
|
90 | command: {
|
91 | output: {
|
92 | config: import("@oclif/core/lib/interfaces").Config;
|
93 | expectation: string;
|
94 | };
|
95 | args: [args: string | string[], opts?: loadConfig.Options | undefined];
|
96 | };
|
97 | } & {
|
98 | exit: {
|
99 | output: {
|
100 | error: any;
|
101 | };
|
102 | args: [code?: number | undefined];
|
103 | };
|
104 | } & {
|
105 | hook: {
|
106 | output: {
|
107 | config: import("@oclif/core/lib/interfaces").Config;
|
108 | expectation: string;
|
109 | };
|
110 | args: [event: string, hookOpts?: Record<string, unknown> | undefined, options?: loadConfig.Options | undefined];
|
111 | };
|
112 | }>;
|
113 | export default test;
|
114 | export { expect, FancyTypes, Config, command, };
|