Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
11
node_modules/hono/dist/helper/testing/index.js
generated
vendored
Normal file
11
node_modules/hono/dist/helper/testing/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// 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
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue