@salesforce/cli-plugins-testkit 2.1.1 → 2.1.4
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 +18 -0
- package/lib/hubAuth.js +5 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.1.4](https://github.com/salesforcecli/cli-plugins-testkit/compare/v2.1.3...v2.1.4) (2022-06-06)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- remove StateAgg, handle when username and authurl are provided ([522ff33](https://github.com/salesforcecli/cli-plugins-testkit/commit/522ff33237e4d918343963d195ac3a298589ff0e))
|
|
10
|
+
|
|
11
|
+
### [2.1.3](https://github.com/salesforcecli/cli-plugins-testkit/compare/v2.1.2...v2.1.3) (2022-06-06)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- globalinfo -> stateAggregator ([6638739](https://github.com/salesforcecli/cli-plugins-testkit/commit/66387396d6aba5276cbadeb2d40fcc98182cd034))
|
|
16
|
+
|
|
17
|
+
### [2.1.2](https://github.com/salesforcecli/cli-plugins-testkit/compare/v2.1.1...v2.1.2) (2022-06-02)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- clear globalInfo instance after every possible touchpoint ([ca7dc01](https://github.com/salesforcecli/cli-plugins-testkit/commit/ca7dc012496ec207649e0ef48a6d1fef2ec94f8d))
|
|
22
|
+
|
|
5
23
|
### [2.1.1](https://github.com/salesforcecli/cli-plugins-testkit/compare/v2.1.0...v2.1.1) (2022-06-02)
|
|
6
24
|
|
|
7
25
|
## [2.1.0](https://github.com/salesforcecli/cli-plugins-testkit/compare/v2.0.1...v2.1.0) (2022-06-01)
|
package/lib/hubAuth.js
CHANGED
|
@@ -110,13 +110,14 @@ const getAuthStrategy = () => {
|
|
|
110
110
|
kit_1.env.getString('TESTKIT_JWT_KEY')) {
|
|
111
111
|
return AuthStrategy.JWT;
|
|
112
112
|
}
|
|
113
|
+
// you provided a username but not an auth url, so you must already have an auth that you want to re-use
|
|
114
|
+
if (kit_1.env.getString('TESTKIT_HUB_USERNAME') && !kit_1.env.getString('TESTKIT_AUTH_URL')) {
|
|
115
|
+
return AuthStrategy.REUSE;
|
|
116
|
+
}
|
|
117
|
+
// auth url alone
|
|
113
118
|
if (kit_1.env.getString('TESTKIT_AUTH_URL')) {
|
|
114
119
|
return AuthStrategy.AUTH_URL;
|
|
115
120
|
}
|
|
116
|
-
// none of the above are included, so we want to reuse an already authenticated hub
|
|
117
|
-
if (kit_1.env.getString('TESTKIT_HUB_USERNAME')) {
|
|
118
|
-
return AuthStrategy.REUSE;
|
|
119
|
-
}
|
|
120
121
|
return AuthStrategy.NONE;
|
|
121
122
|
};
|
|
122
123
|
/**
|
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": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"!lib/**/*.map"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/core": "^3.19.
|
|
46
|
-
"@salesforce/kit": "^1.5.
|
|
45
|
+
"@salesforce/core": "^3.19.4",
|
|
46
|
+
"@salesforce/kit": "^1.5.42",
|
|
47
47
|
"@salesforce/ts-types": "^1.5.17",
|
|
48
48
|
"archiver": "^5.2.0",
|
|
49
49
|
"debug": "^4.3.1",
|