@salesforce/cli-plugins-testkit 3.2.1 → 3.2.3
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/lib/testSession.js +2 -2
- package/package.json +3 -3
package/lib/testSession.js
CHANGED
|
@@ -96,11 +96,11 @@ class TestSession extends kit_1.AsyncOptionalCreatable {
|
|
|
96
96
|
(0, hubAuth_1.testkitHubAuth)(this.homeDir, authStrategy);
|
|
97
97
|
if (authStrategy !== 'NONE') {
|
|
98
98
|
const config = shell.exec('sf config get target-dev-hub --json', this.shelljsExecOptions);
|
|
99
|
-
const configResults = JSON.parse(config.stdout);
|
|
99
|
+
const configResults = JSON.parse(stripAnsi(config.stdout));
|
|
100
100
|
const usernameOrAlias = configResults.result.find((org) => org.name === 'target-dev-hub')?.value;
|
|
101
101
|
if (usernameOrAlias) {
|
|
102
102
|
const displayEnv = shell.exec(`sf env display -e ${usernameOrAlias} --json`, this.shelljsExecOptions);
|
|
103
|
-
const displayEnvResults = JSON.parse(displayEnv.stdout);
|
|
103
|
+
const displayEnvResults = JSON.parse(stripAnsi(displayEnv.stdout));
|
|
104
104
|
this.hubOrg = displayEnvResults.result;
|
|
105
105
|
}
|
|
106
106
|
}
|
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.3",
|
|
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.
|
|
45
|
+
"@salesforce/core": "^3.31.10",
|
|
46
46
|
"@salesforce/kit": "^1.6.1",
|
|
47
47
|
"@salesforce/ts-types": "^1.5.21",
|
|
48
48
|
"@types/shelljs": "^0.8.11",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^5.39.0",
|
|
63
63
|
"@typescript-eslint/parser": "^5.39.0",
|
|
64
64
|
"chai": "^4.3.0",
|
|
65
|
-
"eslint": "^8.
|
|
65
|
+
"eslint": "^8.25.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",
|