diff --git a/__tests__/__snapshots__/otp-runner.js.snap b/__tests__/__snapshots__/otp-runner.js.snap index f1051a3..75362d8 100644 --- a/__tests__/__snapshots__/otp-runner.js.snap +++ b/__tests__/__snapshots__/otp-runner.js.snap @@ -285,6 +285,7 @@ Array [ "./temp-test-files/ok.jar", "--build", "--save", + "--abortOnUnknownConfig", "./temp-test-files/", ] `; diff --git a/__tests__/test-utils/mocks/cli-processes.js b/__tests__/test-utils/mocks/cli-processes.js index 66b1b4f..898aaa4 100644 --- a/__tests__/test-utils/mocks/cli-processes.js +++ b/__tests__/test-utils/mocks/cli-processes.js @@ -94,6 +94,7 @@ function mockOTPGraphBuild (shouldPass = false, otpV2 = false) { javaArgs.push(`./${TEMP_TEST_FOLDER}/ok-otp-2.jar`) javaArgs.push('--build') javaArgs.push('--save') + javaArgs.push('--abortOnUnknownConfig') javaArgs.push(`./${baseFolder}`) } else { javaArgs.push(`./${TEMP_TEST_FOLDER}/ok.jar`) diff --git a/lib/index.js b/lib/index.js index 35f4fe7..b80fbab 100644 --- a/lib/index.js +++ b/lib/index.js @@ -267,7 +267,7 @@ module.exports = class OtpRunner { ${errors.join('\n')}`) } - // if this point is reached, the manfiest.json file is valid! + // if this point is reached, the manifest.json file is valid! this.log.info('manifest is valid!') this.log.info(JSON.stringify(this.manifest, null, 2)) } @@ -364,6 +364,7 @@ module.exports = class OtpRunner { args.push('--build') if (this.isUsingOtp2x()) { args.push('--save') + args.push('--abortOnUnknownConfig') } args.push(this.getTargetFolder()) return args