diff --git a/package.json b/package.json index 0fed12dc..d4ccfabf 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ }, "devDependencies": { "@oclif/plugin-command-snapshot": "^5.0.2", - "@salesforce/cli-plugins-testkit": "^5.0.6", + "@salesforce/cli-plugins-testkit": "^5.1.0", "@salesforce/dev-scripts": "^7.1.1", "@salesforce/plugin-command-reference": "^3.0.48", "eslint-plugin-sf-plugin": "^1.16.15", diff --git a/test/nuts/local/createCMDT.nut.ts b/test/nuts/local/createCMDT.nut.ts index f1fcbf50..f4c4f8b9 100644 --- a/test/nuts/local/createCMDT.nut.ts +++ b/test/nuts/local/createCMDT.nut.ts @@ -92,7 +92,7 @@ describe('force:cmdt:create', () => { }); it('runs force:cmdt:create --typename MyC__MDT --visibility "Invalid"', () => { - const result = execCmd('force:cmdt:create --typename MyC --visibility Invalid', { ensureExitCode: 1 }); + const result = execCmd('force:cmdt:create --typename MyC --visibility Invalid', { ensureExitCode: 'nonZero' }); expect(result.shellOutput.stderr).to.contain( 'Expected --visibility=Invalid to be one of: PackageProtected, Protected, Public' ); diff --git a/test/nuts/local/createField.nut.ts b/test/nuts/local/createField.nut.ts index 10b6abbb..e059f0b9 100644 --- a/test/nuts/local/createField.nut.ts +++ b/test/nuts/local/createField.nut.ts @@ -64,20 +64,22 @@ describe('force:cmdt:field:create', () => { describe('failures', () => { it('fails running force:cmdt:field:create --fieldname myFi__eld --fieldtype Text', () => { - const result = execCmd('force:cmdt:field:create --fieldname myFi__eld --fieldtype Text', { ensureExitCode: 1 }); + const result = execCmd('force:cmdt:field:create --fieldname myFi__eld --fieldtype Text', { + ensureExitCode: 'nonZero', + }); expect(result.shellOutput.stderr).to.contain(messages.getMessage('invalidCustomFieldError', ['myFi__eld'])); }); it('fails running force:cmdt:field:create --fieldname myField --fieldtype Picklist', () => { const result = execCmd('force:cmdt:field:create --fieldname myField --fieldtype Picklist', { - ensureExitCode: 1, + ensureExitCode: 'nonZero', }); expect(result.shellOutput.stderr).to.contain(messages.getMessage('picklistValuesNotSuppliedError')); }); it('fails running force:cmdt:field:create --fieldname money --fieldtype Currency', () => { const result = execCmd('force:cmdt:field:create --fieldname money --fieldtype Currency', { - ensureExitCode: 1, + ensureExitCode: 'nonZero', }); expect(result.shellOutput.stderr).to.contain( 'Expected --type=Currency to be one of: Checkbox, Date, DateTime, Email, Number, Percent, Phone, Picklist, Text, TextArea, LongTextArea, Url' diff --git a/yarn.lock b/yarn.lock index 572007ff..f7efc51a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -891,10 +891,10 @@ dependencies: "@octokit/openapi-types" "^12.11.0" -"@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.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== dependencies: "@salesforce/core" "^6.2.2" "@salesforce/kit" "^3.0.15"