Skip to content

Commit

Permalink
Merge branch 'sm/nut-exit-codes' into sm/type-only-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Dec 15, 2023
2 parents 40d0db7 + 76c02a7 commit 325d6ea
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 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.4",
"@salesforce/cli-plugins-testkit": "^5.0.6",
"@salesforce/cli-plugins-testkit": "^5.1.1",
"@salesforce/dev-scripts": "^8.1.2",
"@salesforce/plugin-command-reference": "^3.0.51",
"@types/inquirer": "^8.2.0",
Expand Down
6 changes: 3 additions & 3 deletions test/nuts/field.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import path from 'node:path';
import path from 'node:path';
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';

describe('generate field NUTs', () => {
Expand All @@ -31,7 +31,7 @@ describe('generate field NUTs', () => {
describe('flag validation failures', () => {
it('short label', () => {
const command = 'generate metadata field --label yo';
execCmd(command, { ensureExitCode: 1 });
execCmd(command, { ensureExitCode: 'nonZero' });
});
it('bad object dir', () => {
const command = `generate metadata field --label longEnough --object ${path.join(
Expand All @@ -40,7 +40,7 @@ describe('generate field NUTs', () => {
'default',
'tabs'
)}`;
execCmd(command, { ensureExitCode: 1 });
execCmd(command, { ensureExitCode: 'nonZero' });
});
});
});
2 changes: 1 addition & 1 deletion test/nuts/platformevent.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('generate platformevent NUTs', () => {
describe('flag validation failures', () => {
it('short label', () => {
const command = 'generate metadata platformevent --label yo';
execCmd(command, { ensureExitCode: 1 });
execCmd(command, { ensureExitCode: 'nonZero' });
});
});
});
2 changes: 1 addition & 1 deletion test/nuts/sobject.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('generate sobject NUTs', () => {
describe('flag validation failures', () => {
it('short label', () => {
const command = 'generate metadata sobject --label yo';
execCmd(command, { ensureExitCode: 1 });
execCmd(command, { ensureExitCode: 'nonZero' });
});
});
});
4 changes: 2 additions & 2 deletions test/nuts/tab.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import path from 'node:path';
import path from 'node:path';
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';

describe('generate tab NUTs', () => {
Expand Down Expand Up @@ -35,7 +35,7 @@ describe('generate tab NUTs', () => {
'default',
'objects'
)}`;
execCmd(command, { ensureExitCode: 1 });
execCmd(command, { ensureExitCode: 'nonZero' });
});
});
});
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -949,12 +949,12 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==

"@salesforce/cli-plugins-testkit@^5.0.6":
version "5.0.6"
resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-5.0.6.tgz#16fb3378406b19ba7b70ebec58c27d683141c571"
integrity sha512-1zbyVpATCSgcL8X6svic2MNqIGGJLUQAwkLmTiibwiudnKGZhkXj1kF+46c2mr5oi4hLKk7Bpzq2fO45MT14/A==
"@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 325d6ea

Please sign in to comment.