Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use a better console-clearing string on Windows
  • Loading branch information
gaearon authored Jan 8, 2018
commit dd7a8c3b239c98c804de9b32410b72518bf13691
2 changes: 1 addition & 1 deletion packages/jest-cli/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down