@salesforce/cli-plugins-testkit 3.0.1 → 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.
@@ -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 = !this.options.devhubAuthStrategy || this.options.devhubAuthStrategy === 'AUTO'
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);
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.1",
4
+ "version": "3.0.2",
5
5
  "author": "Salesforce",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "lib/index.js",