@oclif/test 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/hook.d.ts +1 -1
- package/lib/index.d.ts +14 -14
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.0.2](https://github.com/oclif/test/compare/v2.0.1...v2.0.2) (2021-12-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* update package to v2 minimums ([52115cf](https://github.com/oclif/test/commit/52115cfa36ba73779e7f0bce80e17d6fc285da7d))
|
|
11
|
+
|
|
5
12
|
### [2.0.1](https://github.com/oclif/test/compare/v1.2.8...v2.0.1) (2021-10-04)
|
|
6
13
|
|
|
7
14
|
|
package/lib/hook.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Interfaces } from '@oclif/core';
|
|
2
2
|
import { loadConfig } from './load-config';
|
|
3
|
-
declare const _default: (event: string, hookOpts?:
|
|
3
|
+
declare const _default: (event: string, hookOpts?: Record<string, unknown>, options?: loadConfig.Options) => {
|
|
4
4
|
run(ctx: {
|
|
5
5
|
config: Interfaces.Config;
|
|
6
6
|
expectation: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -15,69 +15,69 @@ export declare const test: FancyTypes.Base<FancyTypes.Context, {
|
|
|
15
15
|
} & {
|
|
16
16
|
retries: {
|
|
17
17
|
output: unknown;
|
|
18
|
-
args: [number];
|
|
18
|
+
args: [count: number];
|
|
19
19
|
};
|
|
20
20
|
} & {
|
|
21
21
|
catch: {
|
|
22
22
|
output: {
|
|
23
23
|
error: Error;
|
|
24
24
|
};
|
|
25
|
-
args: [string | RegExp | ((err: Error) => any),
|
|
25
|
+
args: [arg: string | RegExp | ((err: Error) => any), opts?: {
|
|
26
26
|
raiseIfNotThrown?: boolean | undefined;
|
|
27
|
-
} | undefined
|
|
27
|
+
} | undefined];
|
|
28
28
|
};
|
|
29
29
|
} & {
|
|
30
30
|
env: {
|
|
31
31
|
output: unknown;
|
|
32
|
-
args: [{
|
|
32
|
+
args: [env: {
|
|
33
33
|
[k: string]: string | null | undefined;
|
|
34
|
-
},
|
|
34
|
+
}, opts?: FancyTypes.EnvOptions | undefined];
|
|
35
35
|
};
|
|
36
36
|
} & {
|
|
37
37
|
stub: {
|
|
38
38
|
output: {
|
|
39
39
|
stubs: any[];
|
|
40
40
|
};
|
|
41
|
-
args: [any, any, () => any];
|
|
41
|
+
args: [object: any, path: any, value: () => any];
|
|
42
42
|
};
|
|
43
43
|
} & {
|
|
44
44
|
stdin: {
|
|
45
45
|
output: unknown;
|
|
46
|
-
args: [string,
|
|
46
|
+
args: [input: string, delay?: number | undefined];
|
|
47
47
|
};
|
|
48
48
|
} & {
|
|
49
49
|
stderr: {
|
|
50
50
|
output: {
|
|
51
51
|
readonly stderr: string;
|
|
52
52
|
};
|
|
53
|
-
args: [
|
|
53
|
+
args: [opts?: {
|
|
54
54
|
print?: boolean | undefined;
|
|
55
55
|
stripColor?: boolean | undefined;
|
|
56
|
-
} | undefined
|
|
56
|
+
} | undefined];
|
|
57
57
|
};
|
|
58
58
|
} & {
|
|
59
59
|
stdout: {
|
|
60
60
|
output: {
|
|
61
61
|
readonly stdout: string;
|
|
62
62
|
};
|
|
63
|
-
args: [
|
|
63
|
+
args: [opts?: {
|
|
64
64
|
print?: boolean | undefined;
|
|
65
65
|
stripColor?: boolean | undefined;
|
|
66
|
-
} | undefined
|
|
66
|
+
} | undefined];
|
|
67
67
|
};
|
|
68
68
|
} & {
|
|
69
69
|
nock: {
|
|
70
70
|
output: {
|
|
71
71
|
nock: number;
|
|
72
72
|
};
|
|
73
|
-
args: [string, FancyTypes.NockOptions | FancyTypes.NockCallback,
|
|
73
|
+
args: [host: string, options: FancyTypes.NockOptions | FancyTypes.NockCallback, cb?: FancyTypes.NockCallback | undefined];
|
|
74
74
|
};
|
|
75
75
|
} & {
|
|
76
76
|
timeout: {
|
|
77
77
|
output: {
|
|
78
78
|
timeout: number;
|
|
79
79
|
};
|
|
80
|
-
args: [
|
|
80
|
+
args: [timeout?: number | undefined];
|
|
81
81
|
};
|
|
82
82
|
} & {
|
|
83
83
|
loadConfig: {
|
|
@@ -107,7 +107,7 @@ export declare const test: FancyTypes.Base<FancyTypes.Context, {
|
|
|
107
107
|
config: import("@oclif/core/lib/interfaces").Config;
|
|
108
108
|
expectation: string;
|
|
109
109
|
};
|
|
110
|
-
args: [event: string, hookOpts?:
|
|
110
|
+
args: [event: string, hookOpts?: Record<string, unknown> | undefined, options?: loadConfig.Options | undefined];
|
|
111
111
|
};
|
|
112
112
|
}>;
|
|
113
113
|
export default test;
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/test",
|
|
3
3
|
"description": "test helpers for oclif components",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"author": "Jeff Dickey @jdxcode",
|
|
6
6
|
"bugs": "https://github.com/oclif/test/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"fancy-test": "^
|
|
8
|
+
"fancy-test": "^2.0.0"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@oclif/core": "^0.5
|
|
11
|
+
"@oclif/core": "^1.0.5",
|
|
12
12
|
"@types/chai": "^4.1.7",
|
|
13
|
-
"@types/mocha": "^
|
|
13
|
+
"@types/mocha": "^9.0.0",
|
|
14
14
|
"@types/node": "^14.0.14",
|
|
15
15
|
"chai": "^4.2.0",
|
|
16
|
-
"eslint": "^7.
|
|
17
|
-
"eslint-config-oclif": "^
|
|
18
|
-
"eslint-config-oclif-typescript": "^0.2
|
|
16
|
+
"eslint": "^7.32.0",
|
|
17
|
+
"eslint-config-oclif": "^4.0.0",
|
|
18
|
+
"eslint-config-oclif-typescript": "^1.0.2",
|
|
19
19
|
"globby": "^11.0.1",
|
|
20
|
-
"mocha": "^
|
|
20
|
+
"mocha": "^9",
|
|
21
21
|
"nock": "^13.0.1",
|
|
22
22
|
"shx": "^0.3.3",
|
|
23
23
|
"ts-node": "^9.0.0",
|