Skip to content

Commit

Permalink
Remove existing throw (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjesun authored and cpojer committed Sep 4, 2017
1 parent be4bec3 commit a8be52b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/jest-cli/src/cli/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ const check = (argv: Argv) => {
);
}

if (argv.onlyChanged && argv._.length > 0) {
throw new Error(
'Both --onlyChanged and a path pattern were specified, but these ' +
'two options do not make sense together. Which is it? Do you want ' +
'to run tests for changed files? Or for a specific set of files?',
);
}

if (argv.onlyChanged && argv.watchAll) {
throw new Error(
'Both --onlyChanged and --watchAll were specified, but these two ' +
Expand Down

0 comments on commit a8be52b

Please sign in to comment.