Skip to content

Commit 6dbc014

Browse files
SimenBcpojer
authored andcommitted
Fix --passWithNoTests (#4639)
* Fix --passWithNoTests * Fix flow error * Update snapshot
1 parent 412dd61 commit 6dbc014

File tree

4 files changed

+3
-0
lines changed

4 files changed

+3
-0
lines changed

integration_tests/__tests__/__snapshots__/show_config.test.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ exports[`--showConfig outputs config info and exits 1`] = `
7272
\\"noStackTrace\\": false,
7373
\\"nonFlagArgs\\": [],
7474
\\"notify\\": false,
75+
\\"passWithNoTests\\": false,
7576
\\"rootDir\\": \\"<<REPLACED_ROOT_DIR>>\\",
7677
\\"runTestsByPath\\": false,
7778
\\"testFailureExitCode\\": 1,

integration_tests/__tests__/pass_with_no_tests-test.js renamed to integration_tests/__tests__/pass_with_no_tests.test.js

File renamed without changes.

packages/jest-config/src/normalize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ export default function normalize(options: InitialOptions, argv: Argv) {
464464
case 'notify':
465465
case 'onlyChanged':
466466
case 'outputFile':
467+
case 'passWithNoTests':
467468
case 'replname':
468469
case 'reporters':
469470
case 'resetMocks':

types/Config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export type InitialOptions = {
9999
notify?: boolean,
100100
onlyChanged?: boolean,
101101
outputFile?: Path,
102+
passWithNoTests?: boolean,
102103
preprocessorIgnorePatterns?: Array<Glob>,
103104
preset?: ?string,
104105
projects?: Array<Glob>,

0 commit comments

Comments
 (0)