From afc0a492710d4928d59e20e72f044ce0a4ff0ea4 Mon Sep 17 00:00:00 2001 From: Sachin M K Date: Mon, 15 Jan 2018 01:40:21 +0530 Subject: [PATCH] Fix missing newline after "no files changed" (#5308) * Fix missing newline after "no files changed" * Try to fix formatting * Try to fix prettier formatting * Use PR link in changelog --- CHANGELOG.md | 1 + .../src/get_no_test_found_related_to_changed_files.js | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcca14506def..2c341855de20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * `[jest-runner]` Fix memory leak in coverage reporting ([#5289](https://github.com/facebook/jest/pull/5289)) * `[docs]` Update mention of the minimal version of node supported [#4947](https://github.com/facebook/jest/issues/4947) +* `[jest-cli]` Fix missing newline in console message ([#5308](https://github.com/facebook/jest/pull/5308)) ### Chore & Maintenance diff --git a/packages/jest-cli/src/get_no_test_found_related_to_changed_files.js b/packages/jest-cli/src/get_no_test_found_related_to_changed_files.js index bc9aa31d2014..c5045c43bc42 100644 --- a/packages/jest-cli/src/get_no_test_found_related_to_changed_files.js +++ b/packages/jest-cli/src/get_no_test_found_related_to_changed_files.js @@ -8,9 +8,10 @@ export default function getNoTestFoundRelatedToChangedFiles(globalConfig) { if (isInteractive) { msg += chalk.dim( - '\n' + globalConfig.watch - ? 'Press `a` to run all tests, or run Jest with `--watchAll`.' - : 'Run Jest without `-o` or with `--all` to run all tests.', + '\n' + + (globalConfig.watch + ? 'Press `a` to run all tests, or run Jest with `--watchAll`.' + : 'Run Jest without `-o` or with `--all` to run all tests.'), ); }