@salesforce/cli-plugins-testkit 3.1.1 → 3.2.0

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.
@@ -203,6 +203,8 @@ class TestSession extends kit_1.AsyncOptionalCreatable {
203
203
  // Executes commands and keeps track of any orgs created.
204
204
  // Throws if any commands return a non-zero exitCode.
205
205
  async createOrgs(orgs = []) {
206
+ if (orgs.length === 0)
207
+ return;
206
208
  const dbug = (0, debug_1.debug)('testkit:createOrgs');
207
209
  const setup = () => {
208
210
  for (const org of orgs) {
@@ -242,6 +244,9 @@ class TestSession extends kit_1.AsyncOptionalCreatable {
242
244
  if (org.wait) {
243
245
  baseCmd += ` -w ${org.wait}`;
244
246
  }
247
+ else {
248
+ baseCmd += ' -w 60';
249
+ }
245
250
  const rv = shell.exec(baseCmd, this.shelljsExecOptions);
246
251
  rv.stdout = stripAnsi(rv.stdout);
247
252
  rv.stderr = stripAnsi(rv.stderr);
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.1.1",
4
+ "version": "3.2.0",
5
5
  "author": "Salesforce",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "lib/index.js",