Aktueller Stand
This commit is contained in:
11
backend/node_modules/hono/dist/helper/testing/index.js
generated
vendored
Normal file
11
backend/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
|
||||
};
|
||||
Reference in New Issue
Block a user