From 95c0e5fa92d5a9c586921de8adf3e1a2356d4605 Mon Sep 17 00:00:00 2001 From: Lorenzo Stanco Date: Fri, 22 Dec 2017 02:32:02 +0100 Subject: [PATCH] New line before quitting watch mode (#5158) * New line before quitting watch mode #5150 * New line before quitting watch mode (eslint fix) --- packages/jest-cli/src/watch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/jest-cli/src/watch.js b/packages/jest-cli/src/watch.js index e94c02b129cf..c6a487b4120d 100644 --- a/packages/jest-cli/src/watch.js +++ b/packages/jest-cli/src/watch.js @@ -161,6 +161,7 @@ export default function watch( let activePlugin: ?WatchPlugin; const onKeypress = (key: string) => { if (key === KEYS.CONTROL_C || key === KEYS.CONTROL_D) { + outputStream.write('\n'); process.exit(0); return; } @@ -204,6 +205,7 @@ export default function watch( switch (key) { case KEYS.Q: + outputStream.write('\n'); process.exit(0); return; case KEYS.ENTER: