From dd7a8c3b239c98c804de9b32410b72518bf13691 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 8 Jan 2018 19:18:33 +0000 Subject: [PATCH 1/2] Use a better console-clearing string on Windows --- packages/jest-cli/src/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', From 1c56fb88f8527e25abffaa9de62c6e2476cdccc9 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 9 Jan 2018 14:33:00 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) 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