diff --git a/CHANGELOG.md b/CHANGELOG.md index 80212331a25d..22990d714ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/jest-cli/src/watch.js b/packages/jest-cli/src/watch.js index 0a0c71f32d0b..9486e44675ac 100644 --- a/packages/jest-cli/src/watch.js +++ b/packages/jest-cli/src/watch.js @@ -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;