Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --passWithNoTests #4639

Merged
merged 3 commits into from
Oct 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ exports[`--showConfig outputs config info and exits 1`] = `
\\"noStackTrace\\": false,
\\"nonFlagArgs\\": [],
\\"notify\\": false,
\\"passWithNoTests\\": false,
\\"rootDir\\": \\"<<REPLACED_ROOT_DIR>>\\",
\\"runTestsByPath\\": false,
\\"testFailureExitCode\\": 1,
Expand Down
1 change: 1 addition & 0 deletions packages/jest-config/src/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ export default function normalize(options: InitialOptions, argv: Argv) {
case 'notify':
case 'onlyChanged':
case 'outputFile':
case 'passWithNoTests':
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a weird requirement to get CLI flags to pass through

case 'replname':
case 'reporters':
case 'resetMocks':
Expand Down
1 change: 1 addition & 0 deletions types/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export type InitialOptions = {
notify?: boolean,
onlyChanged?: boolean,
outputFile?: Path,
passWithNoTests?: boolean,
preprocessorIgnorePatterns?: Array<Glob>,
preset?: ?string,
projects?: Array<Glob>,
Expand Down