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
| Name | What 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