Skip to content

Type Alias: FakeResponse

ts
type FakeResponse = 
  | {
  abort: string;
}
  | {
  json: unknown;
  status?: number;
};

Defined in: src/testing/FakeInstance.ts:40

Union Members

Type Literal

ts
{
  abort: string;
}

Simulate a network failure. The fetch adapter throws a TypeError; the Playwright adapter calls route.abort(abort) (use a Playwright error code like "failed" or "timedout").


Type Literal

ts
{
  json: unknown;
  status?: number;
}