@salesforce/cli-plugins-testkit 1.5.10 → 1.5.13
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 +10 -0
- package/README.md +1 -1
- package/lib/execCmd.js +2 -2
- package/package.json +1 -1
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.13](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.12...v1.5.13) (2022-03-01)
|
|
6
|
+
|
|
7
|
+
### [1.5.12](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.11...v1.5.12) (2022-02-11)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- add both stdout and stderr to getExitCodeError ([49cccd7](https://github.com/salesforcecli/cli-plugins-testkit/commit/49cccd70679614846d106ad4cf210ce0f2a017b8))
|
|
12
|
+
|
|
13
|
+
### [1.5.11](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.10...v1.5.11) (2022-02-05)
|
|
14
|
+
|
|
5
15
|
### [1.5.10](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.9...v1.5.10) (2022-02-03)
|
|
6
16
|
|
|
7
17
|
### [1.5.9](https://github.com/salesforcecli/cli-plugins-testkit/compare/v1.5.8...v1.5.9) (2022-02-02)
|
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 @
|
|
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
|
|
51
|
-
return Error(`Unexpected exit code for command: ${cmd}. Expected: ${expectedCode} Actual: ${output.code}
|
|
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.
|
|
4
|
+
"version": "1.5.13",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "lib/index.js",
|