MCPcopy Create free account
hub / github.com/angular/dev-infra / intercept

Method intercept

github-actions/browserstack/set-browserstack-env.js:11381–11383  ·  view source on GitHub ↗

* Sets up the base interceptor for mocking replies from undici.

(opts)

Source from the content-addressed store, hash-verified

11379 * Delay a reply by a set amount in ms.
11380 */
11381 delay(waitInMs) {
11382 if (typeof waitInMs !== "number" || !Number.isInteger(waitInMs) || waitInMs <= 0) {
11383 throw new InvalidArgumentError("waitInMs must be a valid integer > 0");
11384 }
11385 this[kMockDispatch].delay = waitInMs;
11386 return this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected