Skip to content

Commit 95c0e5f

Browse files
lorenzoscpojer
authored andcommitted
New line before quitting watch mode (#5158)
* New line before quitting watch mode #5150 * New line before quitting watch mode (eslint fix)
1 parent 8c7ba7e commit 95c0e5f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/jest-cli/src/watch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export default function watch(
161161
let activePlugin: ?WatchPlugin;
162162
const onKeypress = (key: string) => {
163163
if (key === KEYS.CONTROL_C || key === KEYS.CONTROL_D) {
164+
outputStream.write('\n');
164165
process.exit(0);
165166
return;
166167
}
@@ -204,6 +205,7 @@ export default function watch(
204205

205206
switch (key) {
206207
case KEYS.Q:
208+
outputStream.write('\n');
207209
process.exit(0);
208210
return;
209211
case KEYS.ENTER:

0 commit comments

Comments
 (0)