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

Method cleanup

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

Source from the content-addressed store, hash-verified

334
335 private addCleanupListeners() {
336 const cleanup = () => {
337 this.cleanupListeners.forEach(fn => fn())
338
339 if ((this.outputStream as typeof process.stdout).isTTY) {
340 (this.outputStream as Writable).write(SHOW_CURSOR)
341 }
342 }
343
344 const onExit = (signal?: string | number, exitCode?: number) => {
345 cleanup()

Callers 3

cleanupFunction · 0.80
BrowserTestRunnerClass · 0.80
teardownFunction · 0.80

Calls 2

fnFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected