MCPcopy Create free account
hub / github.com/nodejs/node / intercept

Method intercept

deps/undici/src/types/mock-interceptor.d.ts:85–85  ·  view source on GitHub ↗

Intercepts any matching requests that use the same origin as this mock client.

(options: MockInterceptor.Options)

Source from the content-addressed store, hash-verified

83interface Interceptable extends Dispatcher {
84 /** Intercepts any matching requests that use the same origin as this mock client. */
85 intercept(options: MockInterceptor.Options): MockInterceptor;
86 /** Clean up all the prepared mocks. */
87 cleanMocks (): void
88}

Callers 3

unpublish.jsFile · 0.65

Implementers 4

MockPooldeps/undici/src/types/mock-pool.d.ts
MockClientdeps/undici/src/types/mock-client.d.ts
MockPooldeps/undici/src/lib/mock/mock-pool.js
MockClientdeps/undici/src/lib/mock/mock-client.j

Calls

no outgoing calls

Tested by

no test coverage detected