diff --git a/CHANGELOG.md b/CHANGELOG.md index 7048c2c3b311..dafd855528c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ custom matchers. ([#5162](https://github.com/facebook/jest/pull/5162)) * `[pretty-format]` Pretty format for DOMStringMap and NamedNodeMap ([#5233](https://github.com/facebook/jest/pull/5233)) +* `[jest-cli]` Use a better console-clearing string on Windows + ([#5251](https://github.com/facebook/jest/pull/5251)) ### Features diff --git a/packages/jest-cli/src/constants.js b/packages/jest-cli/src/constants.js index 6341694c41e1..ce7dded302bc 100644 --- a/packages/jest-cli/src/constants.js +++ b/packages/jest-cli/src/constants.js @@ -9,7 +9,7 @@ const isWindows = process.platform === 'win32'; -export const CLEAR = isWindows ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H'; +export const CLEAR = isWindows ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'; export const KEYS = { A: '61',