Skip to content

Commit

Permalink
Disable stdin raw mode in watch quit plugin (jestjs#5028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Earnshaw committed Feb 13, 2018
1 parent 54c83f2 commit 3bfff14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/jest-cli/src/plugins/quit.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import WatchPlugin from '../watch_plugin';

class QuitPlugin extends WatchPlugin {
async showPrompt() {
if (typeof this._stdin.setRawMode === 'function') {
this._stdin.setRawMode(false);
}
this._stdout.write('\n');
process.exit(0);
}
Expand Down

0 comments on commit 3bfff14

Please sign in to comment.