Skip to Content
Senri
API reference

/testing

@senrijs/senri/testing: Calling an app without a server

Calling an app without a server.

import { ... } from "@senrijs/senri/testing";

Functions and classes

NameWhat it does
testClient<Api>(app, options?)Calls app.fetch with a typed client
request(app, "METHOD /path", init?)Returns a Response

Types

TestOptions

Prop

Type

Source: src/testing.ts

On this page