@salesforce/cli-plugins-testkit 3.0.0 → 3.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/lib/testSession.js +2 -4
- package/package.json +1 -1
package/lib/testSession.js
CHANGED
|
@@ -87,9 +87,7 @@ class TestSession extends kit_1.AsyncOptionalCreatable {
|
|
|
87
87
|
}
|
|
88
88
|
// Write the test session options used to create this session
|
|
89
89
|
fs.writeFileSync(path.join(this.dir, 'testSessionOptions.json'), JSON.stringify(JSON.parse(JSON.stringify(this.options))));
|
|
90
|
-
const authStrategy =
|
|
91
|
-
? (0, hubAuth_1.getAuthStrategy)()
|
|
92
|
-
: this.options.devhubAuthStrategy;
|
|
90
|
+
const authStrategy = this.options.devhubAuthStrategy === 'AUTO' ? (0, hubAuth_1.getAuthStrategy)() : this.options.devhubAuthStrategy ?? 'NONE';
|
|
93
91
|
(0, hubAuth_1.transferExistingAuthToEnv)(authStrategy);
|
|
94
92
|
// Set the homedir used by this test, on the TestSession and the process
|
|
95
93
|
process.env.USERPROFILE = process.env.HOME = this.homeDir = kit_1.env.getString('TESTKIT_HOMEDIR', this.dir);
|
|
@@ -231,7 +229,7 @@ class TestSession extends kit_1.AsyncOptionalCreatable {
|
|
|
231
229
|
baseCmd += executable === 'sf' ? ` -e ${org.edition}` : ` edition=${org.edition}`;
|
|
232
230
|
}
|
|
233
231
|
if (org.wait) {
|
|
234
|
-
baseCmd +=
|
|
232
|
+
baseCmd += ` -w ${org.wait}`;
|
|
235
233
|
}
|
|
236
234
|
const rv = shell.exec(baseCmd, this.shelljsExecOptions);
|
|
237
235
|
rv.stdout = stripAnsi(rv.stdout);
|
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.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "lib/index.js",
|