MCPcopy
hub / github.com/vitest-dev/vitest / _clearScreen

Method _clearScreen

packages/vitest/src/node/logger.ts:98–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 private _clearScreen() {
99 if (this._clearScreenPending == null) {
100 return
101 }
102
103 const log = this._clearScreenPending
104 this._clearScreenPending = undefined
105 this.console.log(`${CURSOR_TO_START}${ERASE_DOWN}${log}`)
106 }
107
108 printError(err: unknown, options: ErrorOptions = {}): void {
109 printError(err, this.ctx, this, options)

Callers 4

logMethod · 0.95
errorMethod · 0.95
warnMethod · 0.95
clearScreenMethod · 0.95

Calls 1

logMethod · 0.45

Tested by

no test coverage detected