Skip to content

Commit

Permalink
Fix enter to interrupt (#6601)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii authored and SimenB committed Jul 3, 2018
1 parent de21fd4 commit 0c61496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

- `[jest-regex-util]` Improve handling already escaped path separators on Windows ([#6523](https://github.com/facebook/jest/pull/6523))
- `[jest-cli]` Fix `testNamePattern` value with interactive snapshots ([#6579](https://github.com/facebook/jest/pull/6579))
- `[jest-cli]` Fix enter to interrupt watch mode ([#6601](https://github.com/facebook/jest/pull/6601))

### Chore & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-cli/src/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default function watch(
if (
isRunning &&
testWatcher &&
!['q', KEYS.ENTER, 'a', 'o', 'f'].concat(pluginKeys).includes(key)
['q', KEYS.ENTER, 'a', 'o', 'f'].concat(pluginKeys).includes(key)
) {
testWatcher.setState({interrupted: true});
return;
Expand Down

0 comments on commit 0c61496

Please sign in to comment.