From c5123ec7f7259f00fec24e497a52c508c64fe6df Mon Sep 17 00:00:00 2001 From: Benjamin Hobbs <15235276+benjaminhobbs@users.noreply.github.com> Date: Sat, 11 Feb 2023 18:50:00 +0400 Subject: [PATCH] chore: remove sassy responses --- packages/jest-cli/src/args.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/jest-cli/src/args.ts b/packages/jest-cli/src/args.ts index c33f5e57310f..b7089c44ee3a 100644 --- a/packages/jest-cli/src/args.ts +++ b/packages/jest-cli/src/args.ts @@ -15,8 +15,7 @@ export function check(argv: Config.Argv): true { Object.prototype.hasOwnProperty.call(argv, 'maxWorkers') ) { throw new Error( - 'Both --runInBand and --maxWorkers were specified, but these two ' + - 'options do not make sense together. Which is it?', + 'Both --runInBand and --maxWorkers were specified, only one is allowed.', ); } @@ -28,17 +27,16 @@ export function check(argv: Config.Argv): true { ]) { if (argv[key] && argv.watchAll) { throw new Error( - `Both --${key} and --watchAll were specified, but these two ` + - 'options do not make sense together. Try the --watch option which ' + - 'reruns only tests related to changed files.', + `Both --${key} and --watchAll were specified, but cannot be used ` + + 'together. Try the --watch option which reruns only tests ' + + 'related to changed files.', ); } } if (argv.onlyFailures && argv.watchAll) { throw new Error( - 'Both --onlyFailures and --watchAll were specified, but these two ' + - 'options do not make sense together.', + 'Both --onlyFailures and --watchAll were specified, only one is allowed.', ); }