API reference@evolu/commonHttp › TestNativeFetch

Defined in: packages/common/src/Http.ts:484

Test NativeFetch that records calls and serves queued handlers.

Each call shifts the next handler. Calling with an empty queue throws, so a test never silently reaches an unplanned request.

Extends

Call Signature

TestNativeFetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;

Defined in: packages/common/src/Http.ts:484

MDN Reference

Call Signature

TestNativeFetch(input: string | Request | URL, init?: RequestInit): Promise<Response>;

Defined in: packages/common/src/Http.ts:484

MDN Reference

Properties

calls

readonly calls: readonly TestNativeFetchCall[];

Defined in: packages/common/src/Http.ts:485


handle

readonly handle: (handler: TestNativeFetchHandler) => void;

Defined in: packages/common/src/Http.ts:486