@salesforce/cli-plugins-testkit 3.2.14 → 3.2.16
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/LICENSE.txt +1 -1
- package/lib/testSession.d.ts +3 -3
- package/lib/testSession.js +2 -2
- package/package.json +4 -4
package/LICENSE.txt
CHANGED
package/lib/testSession.d.ts
CHANGED
|
@@ -64,12 +64,12 @@ export interface TestSessionOptions {
|
|
|
64
64
|
* TESTKIT_HUB_INSTANCE = instance url for the hub. Defaults to https://login.salesforce.com
|
|
65
65
|
* TESTKIT_AUTH_URL = auth url to be used with auth:sfdxurl:store
|
|
66
66
|
*/
|
|
67
|
-
export declare class TestSession extends AsyncOptionalCreatable<
|
|
67
|
+
export declare class TestSession<T extends TestSessionOptions = TestSessionOptions> extends AsyncOptionalCreatable<T> {
|
|
68
68
|
id: string;
|
|
69
69
|
createdDate: Date;
|
|
70
70
|
dir: string;
|
|
71
71
|
homeDir: string;
|
|
72
|
-
project
|
|
72
|
+
project: T['project'] extends TestSessionOptions['project'] ? TestProject : TestProject | undefined;
|
|
73
73
|
rmRetryConfig: Partial<RetryConfig<void>>;
|
|
74
74
|
orgs: Map<string, AuthFields>;
|
|
75
75
|
hubOrg: AuthFields;
|
|
@@ -82,7 +82,7 @@ export declare class TestSession extends AsyncOptionalCreatable<TestSessionOptio
|
|
|
82
82
|
private options;
|
|
83
83
|
private shelljsExecOptions;
|
|
84
84
|
private orgsAliases;
|
|
85
|
-
constructor(options?:
|
|
85
|
+
constructor(options?: T);
|
|
86
86
|
/**
|
|
87
87
|
* Get an existing test session created with the same options,
|
|
88
88
|
* or create a new session if a match is not found. This allows
|
package/lib/testSession.js
CHANGED
|
@@ -46,7 +46,7 @@ const hubAuth_1 = require("./hubAuth");
|
|
|
46
46
|
*/
|
|
47
47
|
class TestSession extends kit_1.AsyncOptionalCreatable {
|
|
48
48
|
constructor(options = {}) {
|
|
49
|
-
super(options);
|
|
49
|
+
super(options ?? {});
|
|
50
50
|
// this is stored on the class so that tests can set it to something much lower than default
|
|
51
51
|
this.rmRetryConfig = { retries: 12, delay: 5000 };
|
|
52
52
|
this.orgs = new Map();
|
|
@@ -55,7 +55,7 @@ class TestSession extends kit_1.AsyncOptionalCreatable {
|
|
|
55
55
|
silent: true,
|
|
56
56
|
};
|
|
57
57
|
this.orgsAliases = ['default'];
|
|
58
|
-
this.options = options;
|
|
58
|
+
this.options = options ?? {};
|
|
59
59
|
this.debug = (0, debug_1.debug)('testkit:session');
|
|
60
60
|
this.zipDir = zip_1.zipDir;
|
|
61
61
|
this.createdDate = new Date();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli-plugins-testkit",
|
|
3
3
|
"description": "Provides test utilities to assist Salesforce CLI plug-in authors with writing non-unit tests (NUT).",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.16",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"!lib/**/*.map"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/core": "^3.32.
|
|
45
|
+
"@salesforce/core": "^3.32.12",
|
|
46
46
|
"@salesforce/kit": "^1.8.0",
|
|
47
47
|
"@salesforce/ts-types": "^1.5.21",
|
|
48
48
|
"@types/shelljs": "^0.8.11",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@types/archiver": "^5.1.0",
|
|
61
61
|
"@types/debug": "^4.1.5",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
63
|
-
"@typescript-eslint/parser": "^5.
|
|
63
|
+
"@typescript-eslint/parser": "^5.47.1",
|
|
64
64
|
"chai": "^4.3.7",
|
|
65
|
-
"eslint": "^8.
|
|
65
|
+
"eslint": "^8.31.0",
|
|
66
66
|
"eslint-config-prettier": "^8.5.0",
|
|
67
67
|
"eslint-config-salesforce": "^1.1.0",
|
|
68
68
|
"eslint-config-salesforce-license": "^0.1.6",
|