Skip to content

Commit

Permalink
prevent exitcode of 100 failing the plugin tests in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSurgisonGDS committed Oct 27, 2023
1 parent dab78c4 commit 531f199
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/plugins/plugin-validator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ describe('plugin-validator', () => {
})

describe('unexpected keys', () => {
afterEach(() => {
// prevent the process exitcode of 100 from failing the tests in the CI
if (process.exitCode === 100) {
process.exitCode = 0
}
})

it('should fail when a key is unknown', async () => {
testScope.fileSystem.writeFile(['govuk-prototype-kit.config.json'], JSON.stringify({
myExample: ['abc']
Expand Down

0 comments on commit 531f199

Please sign in to comment.