MCPcopy
hub / github.com/nock/nock / NockEmitter

Interface NockEmitter

types/index.d.ts:102–124  ·  view source on GitHub ↗

* Enhanced global emitter with typed 'no match' event

Source from the content-addressed store, hash-verified

100 * Enhanced global emitter with typed 'no match' event
101 */
102 interface NockEmitter extends NodeJS.EventEmitter {
103 on(event: 'no match', listener: (req: Request) => void): this
104 on(
105 event: 'no match',
106 listener: (
107 req: Request,
108 interceptorResults?: InterceptorMatchResult[],
109 ) => void,
110 ): this
111 once(event: 'no match', listener: (req: Request) => void): this
112 once(
113 event: 'no match',
114 listener: (
115 req: Request,
116 interceptorResults?: InterceptorMatchResult[],
117 ) => void,
118 ): this
119 emit(
120 event: 'no match',
121 req: Request,
122 interceptorResults?: InterceptorMatchResult[],
123 ): boolean
124 }
125
126 interface Scope extends NodeJS.EventEmitter {
127 get: InterceptFunction

Callers 20

tests.tsFile · 0.80
continueWithResponseBodyFunction · 0.80
recordFunction · 0.80
startFunction · 0.80
activateFunction · 0.80
makeRequestFunction · 0.80
test_abort.jsFile · 0.80
test_socket.jsFile · 0.80
tests.tsFile · 0.65
testNockFunction · 0.65
test_back.jsFile · 0.65
test_destroy.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…