diff --git a/packages/jest-cli/src/jest.js b/packages/jest-cli/src/jest.js index 1e43d5f12fab..f499dd39b5f6 100644 --- a/packages/jest-cli/src/jest.js +++ b/packages/jest-cli/src/jest.js @@ -34,7 +34,7 @@ const sane = require('sane'); const which = require('which'); const TestWatcher = require('./TestWatcher'); -const CLEAR = '\x1B[2J\x1B[H'; +const CLEAR = process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H'; const VERSION = require('../package.json').version; const WATCHER_DEBOUNCE = 200; const WATCHMAN_BIN = 'watchman';