index.js 330 B

1234567891011
  1. // src/helper/testing/index.ts
  2. import { hc } from "../../client/index.js";
  3. var testClient = (app, Env, executionCtx, options) => {
  4. const customFetch = (input, init) => {
  5. return app.request(input, init, Env, executionCtx);
  6. };
  7. return hc("http://localhost", { ...options, fetch: customFetch });
  8. };
  9. export {
  10. testClient
  11. };