MCPcopy Create free account
hub / github.com/freecodexyz/free-code / resetWarningHandler

Function resetWarningHandler

src/utils/warningHandler.ts:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51// For testing only - allows resetting the warning handler state
52export function resetWarningHandler(): void {
53 if (warningHandler) {
54 process.removeListener('warning', warningHandler)
55 }
56 warningHandler = null
57 warningCounts.clear()
58}
59
60export function initializeWarningHandler(): void {
61 // Only set up handler once - check if our handler is already installed

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected