UNPKG

hono

Version:

Web framework built on Web Standards

12 lines (11 loc) 330 B
// src/helper/testing/index.ts import { hc } from "../../client/index.js"; var testClient = (app, Env, executionCtx, options) => { const customFetch = (input, init) => { return app.request(input, init, Env, executionCtx); }; return hc("http://localhost", { ...options, fetch: customFetch }); }; export { testClient };