Skip to content

Commit

Permalink
test: non-zero exitCodes (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored Dec 15, 2023
1 parent 07f8cb7 commit 069ff4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@oclif/plugin-command-snapshot": "^5.0.3",
"@salesforce/cli-plugins-testkit": "^5.1.0",
"@salesforce/cli-plugins-testkit": "^5.1.1",
"@salesforce/dev-scripts": "^8.1.2",
"@salesforce/plugin-command-reference": "^3.0.51",
"@salesforce/plugin-source": "^2.11.4",
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/seeds/deploy.metadata.metadata-dir.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ context('deploy metadata --metadata-dir NUTs [name: %REPO_NAME%]', () => {
}

it('should throw an error if the directory does not exist', async () => {
const deploy = await testkit.deploy({ args: '--metadata-dir DOES_NOT_EXIST', exitCode: 1 });
const deploy = await testkit.deploy({ args: '--metadata-dir DOES_NOT_EXIST', exitCode: 'nonZero' });
assert(deploy);
testkit.expect.errorToHaveName(deploy, 'InvalidFlagPathError');
});
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/seeds/deploy.metadata.source-dir.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ context('deploy metadata --source-dir NUTs [name: %REPO_NAME%]', () => {
}

it('should throw an error if the directory does not exist', async () => {
const deploy = await testkit.deploy({ args: '--source-dir DOES_NOT_EXIST', exitCode: 1 });
const deploy = await testkit.deploy({ args: '--source-dir DOES_NOT_EXIST', exitCode: 'nonZero' });
assert(deploy);
testkit.expect.errorToHaveName(deploy, 'SfError');
});
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -976,12 +976,12 @@
istanbul-reports "^3.1.6"
jsforce "^2.0.0-beta.29"

"@salesforce/cli-plugins-testkit@^5.1.0":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-5.1.0.tgz#8d9caa22ea9e99879629206892afb26bcd540cef"
integrity sha512-P5tYlNqE87lX9Yp2aAsK75PICoAbmrSK3LEqiIVbtn75PN3OKiD1JEEX2ZDu+HWtO4/nxPtO4JFvX5j00EZGBA==
"@salesforce/cli-plugins-testkit@^5.1.0", "@salesforce/cli-plugins-testkit@^5.1.1":
version "5.1.1"
resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-5.1.1.tgz#73baef2d27abc6cbb11c82e2869a3b4b57ff342d"
integrity sha512-qllBs+dGYIMS7GrJfJaalJSNsNohDAiLLHOZXk8WL+aZ1dRGDaWTiS4gyZKPKgeahXuNPTBxDqNg7WajvfNcxg==
dependencies:
"@salesforce/core" "^6.2.2"
"@salesforce/core" "^6.4.0"
"@salesforce/kit" "^3.0.15"
"@salesforce/ts-types" "^2.0.9"
"@types/shelljs" "^0.8.15"
Expand Down

0 comments on commit 069ff4b

Please sign in to comment.