1 | import * as oclifTest from '@oclif/test';
|
2 | import { command, Config, expect, FancyTypes } from '@oclif/test';
|
3 | import { AuthFields } from '@salesforce/core';
|
4 | import { TestContext } from '@salesforce/core/lib/testSetup';
|
5 | import { AnyJson, Dictionary, JsonMap, Optional } from '@salesforce/ts-types';
|
6 | import * as IConfig from '@oclif/config/lib/config';
|
7 | import { loadConfig } from '@oclif/test/lib/load-config';
|
8 | declare const $$: TestContext;
|
9 | declare const test: oclifTest.FancyTypes.Base<oclifTest.FancyTypes.Context, {
|
10 | skip: {
|
11 | output: {};
|
12 | args: [];
|
13 | };
|
14 | } & {
|
15 | only: {
|
16 | output: {};
|
17 | args: [];
|
18 | };
|
19 | } & {
|
20 | retries: {
|
21 | output: {};
|
22 | args: [number];
|
23 | };
|
24 | } & {
|
25 | catch: {
|
26 | output: {
|
27 | error: Error;
|
28 | };
|
29 | args: [string | RegExp | ((err: Error) => any), ({
|
30 | raiseIfNotThrown?: boolean | undefined;
|
31 | } | undefined)?];
|
32 | };
|
33 | } & {
|
34 | env: {
|
35 | output: {};
|
36 | args: [{
|
37 | [k: string]: Optional<string | null>;
|
38 | }, (oclifTest.FancyTypes.EnvOptions | undefined)?];
|
39 | };
|
40 | } & {
|
41 | stub: {
|
42 | output: {
|
43 | stubs: any[];
|
44 | };
|
45 | args: any[];
|
46 | };
|
47 | } & {
|
48 | stdin: {
|
49 | output: {};
|
50 | args: [string, (number | undefined)?];
|
51 | };
|
52 | } & {
|
53 | stderr: {
|
54 | output: {
|
55 | readonly stderr: string;
|
56 | };
|
57 | args: [({
|
58 | print?: boolean | undefined;
|
59 | stripColor?: boolean | undefined;
|
60 | } | undefined)?];
|
61 | };
|
62 | } & {
|
63 | stdout: {
|
64 | output: {
|
65 | readonly stdout: string;
|
66 | };
|
67 | args: [({
|
68 | print?: boolean | undefined;
|
69 | stripColor?: boolean | undefined;
|
70 | } | undefined)?];
|
71 | };
|
72 | } & {
|
73 | nock: {
|
74 | output: {
|
75 | nock: number;
|
76 | };
|
77 | args: [string, oclifTest.FancyTypes.NockOptions | oclifTest.FancyTypes.NockCallback, (oclifTest.FancyTypes.NockCallback | undefined)?];
|
78 | };
|
79 | } & {
|
80 | timeout: {
|
81 | output: {
|
82 | timeout: number;
|
83 | };
|
84 | args: [(number | undefined)?];
|
85 | };
|
86 | } & {
|
87 | loadConfig: {
|
88 | output: {
|
89 | config: oclifTest.Config.IConfig;
|
90 | };
|
91 | args: [(loadConfig.Options | undefined)?];
|
92 | };
|
93 | } & {
|
94 | command: {
|
95 | output: {
|
96 | config: oclifTest.Config.IConfig;
|
97 | expectation: string;
|
98 | };
|
99 | args: [string | string[], (loadConfig.Options | undefined)?];
|
100 | };
|
101 | } & {
|
102 | exit: {
|
103 | output: {
|
104 | error: any;
|
105 | };
|
106 | args: [(number | undefined)?];
|
107 | };
|
108 | } & {
|
109 | hook: {
|
110 | output: {
|
111 | config: oclifTest.Config.IConfig;
|
112 | expectation: string;
|
113 | };
|
114 | args: [string, Optional<object>?, (loadConfig.Options | undefined)?];
|
115 | };
|
116 | } & {
|
117 | withOrg: {
|
118 | output: Dictionary<any>;
|
119 | args: [(Partial<AuthFields> | undefined)?, (boolean | undefined)?];
|
120 | };
|
121 | } & {
|
122 | withConnectionRequest: {
|
123 | output: Dictionary<unknown>;
|
124 | args: [(request: AnyJson, options?: Optional<AnyJson>) => Promise<AnyJson>];
|
125 | };
|
126 | } & {
|
127 | withProject: {
|
128 | output: Dictionary<unknown>;
|
129 | args: [Optional<JsonMap>?];
|
130 | };
|
131 | }>;
|
132 | export default test;
|
133 | export { expect, FancyTypes, Config, command, loadConfig, IConfig, test, $$, TestContext };
|