diff --git a/package.json b/package.json index 520a265e..093337f0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/nuts/field.nut.ts b/test/nuts/field.nut.ts index f98e7cf8..02da1151 100644 --- a/test/nuts/field.nut.ts +++ b/test/nuts/field.nut.ts @@ -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', () => { @@ -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( @@ -40,7 +40,7 @@ describe('generate field NUTs', () => { 'default', 'tabs' )}`; - execCmd(command, { ensureExitCode: 1 }); + execCmd(command, { ensureExitCode: 'nonZero' }); }); }); }); diff --git a/test/nuts/platformevent.nut.ts b/test/nuts/platformevent.nut.ts index 2c4378a5..99462e8b 100644 --- a/test/nuts/platformevent.nut.ts +++ b/test/nuts/platformevent.nut.ts @@ -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' }); }); }); }); diff --git a/test/nuts/sobject.nut.ts b/test/nuts/sobject.nut.ts index 217a2edc..cee99282 100644 --- a/test/nuts/sobject.nut.ts +++ b/test/nuts/sobject.nut.ts @@ -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' }); }); }); }); diff --git a/test/nuts/tab.nut.ts b/test/nuts/tab.nut.ts index 5c3e4955..728bac63 100644 --- a/test/nuts/tab.nut.ts +++ b/test/nuts/tab.nut.ts @@ -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', () => { @@ -35,7 +35,7 @@ describe('generate tab NUTs', () => { 'default', 'objects' )}`; - execCmd(command, { ensureExitCode: 1 }); + execCmd(command, { ensureExitCode: 'nonZero' }); }); }); }); diff --git a/yarn.lock b/yarn.lock index 8255fccf..aca9f7c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"