@salesforce/cli-plugins-testkit 1.5.11 → 1.5.14

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 CHANGED
@@ -2,6 +2,16 @@
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
+ ### [1.5.14](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.13...v1.5.14) (2022-03-01)
6
+
7
+ ### [1.5.13](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.12...v1.5.13) (2022-03-01)
8
+
9
+ ### [1.5.12](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.11...v1.5.12) (2022-02-11)
10
+
11
+ ### Bug Fixes
12
+
13
+ - add both stdout and stderr to getExitCodeError ([49cccd7](https://github.com/salesforcecli/cli-plugins-testkit/commit/49cccd70679614846d106ad4cf210ce0f2a017b8))
14
+
5
15
  ### [1.5.11](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.10...v1.5.11) (2022-02-05)
6
16
 
7
17
  ### [1.5.10](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.9...v1.5.10) (2022-02-03)
package/README.md CHANGED
@@ -10,7 +10,7 @@ The @salesforce/cli-plugins-testkit library provides test utilities to assist Sa
10
10
  Add this library as a dev dependencies to your project.
11
11
 
12
12
  ```bash
13
- yarn add @salesforcecli/cli-plugins-testkit --dev
13
+ yarn add @salesforce/cli-plugins-testkit --dev
14
14
  ```
15
15
 
16
16
  Create a test file and import the utilities from this library that you'd like to use.
package/lib/execCmd.js CHANGED
@@ -47,8 +47,8 @@ const addJsonOutput = (cmd, result) => {
47
47
  return result;
48
48
  };
49
49
  const getExitCodeError = (cmd, expectedCode, output) => {
50
- const io = cmd.includes('--json') ? output.stdout : output.stderr;
51
- return Error(`Unexpected exit code for command: ${cmd}. Expected: ${expectedCode} Actual: ${output.code}\n${io}`);
50
+ const errorDetails = `\nstdout=${output.stdout}\nstderr=${output.stderr}`;
51
+ return Error(`Unexpected exit code for command: ${cmd}. Expected: ${expectedCode} Actual: ${output.code}${errorDetails}`);
52
52
  };
53
53
  /**
54
54
  * Build a command string using an optional executable path for use by `execCmd`.
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": "1.5.11",
4
+ "version": "1.5.14",
5
5
  "author": "Salesforce",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "lib/index.js",