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

Function resetWarningHandler

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

Source from the content-addressed store, hash-verified

27
28// For testing only - allows resetting the warning handler state
29export function resetWarningHandler(): void {
30 if (warningHandler) {
31 process.removeListener('warning', warningHandler)
32 }
33 warningHandler = null
34 warningCounts.clear()
35}
36
37export function initializeWarningHandler(): void {
38 // 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