diff --git a/integration_tests/__tests__/__snapshots__/show_config.test.js.snap b/integration_tests/__tests__/__snapshots__/show_config.test.js.snap index f312b5fdcd49..57d4aaf6dd63 100644 --- a/integration_tests/__tests__/__snapshots__/show_config.test.js.snap +++ b/integration_tests/__tests__/__snapshots__/show_config.test.js.snap @@ -72,6 +72,7 @@ exports[`--showConfig outputs config info and exits 1`] = ` \\"noStackTrace\\": false, \\"nonFlagArgs\\": [], \\"notify\\": false, + \\"passWithNoTests\\": false, \\"rootDir\\": \\"<>\\", \\"runTestsByPath\\": false, \\"testFailureExitCode\\": 1, diff --git a/integration_tests/__tests__/pass_with_no_tests-test.js b/integration_tests/__tests__/pass_with_no_tests.test.js similarity index 100% rename from integration_tests/__tests__/pass_with_no_tests-test.js rename to integration_tests/__tests__/pass_with_no_tests.test.js diff --git a/packages/jest-config/src/normalize.js b/packages/jest-config/src/normalize.js index d1a8be95417a..fc09f87e5cee 100644 --- a/packages/jest-config/src/normalize.js +++ b/packages/jest-config/src/normalize.js @@ -464,6 +464,7 @@ export default function normalize(options: InitialOptions, argv: Argv) { case 'notify': case 'onlyChanged': case 'outputFile': + case 'passWithNoTests': case 'replname': case 'reporters': case 'resetMocks': diff --git a/types/Config.js b/types/Config.js index 3a453ba9e109..c62d9449dea8 100644 --- a/types/Config.js +++ b/types/Config.js @@ -99,6 +99,7 @@ export type InitialOptions = { notify?: boolean, onlyChanged?: boolean, outputFile?: Path, + passWithNoTests?: boolean, preprocessorIgnorePatterns?: Array, preset?: ?string, projects?: Array,