MCPcopy
hub / github.com/jestjs/jest / clearLine

Function clearLine

packages/jest-util/src/clearLine.ts:10–14  ·  view source on GitHub ↗
(stream: WriteStream)

Source from the content-addressed store, hash-verified

8import type {WriteStream} from 'node:tty';
9
10export default function clearLine(stream: WriteStream): void {
11 if (stream.isTTY) {
12 stream.write('\u001B[999D\u001B[K');
13 }
14}

Callers 8

runFunction · 0.90
buildTestPathPatternsFunction · 0.90
_logMethod · 0.90
_logErrorMethod · 0.90
runCLIFunction · 0.90
_addUntestedFilesMethod · 0.90
onRunCompleteMethod · 0.90
removeFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected