Files
SnowLuma/.pnpm-store/v11/files/c1/42bf3d62e8488fd519204cf3e97b4fade3bf05f3f3aa3f994d6528e9825b581ea88c15de0e75e30fea7279bc40e73bb58416dde66fcea720a7926c179be399
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

18 lines
395 B
Plaintext

import { hc } from "../../client/client.js";
//#region src/helper/testing/index.ts
/**
* @module
* Testing Helper for Hono.
*/
const testClient = (app, Env, executionCtx, options) => {
const customFetch = (input, init) => {
return app.request(input, init, Env, executionCtx);
};
return hc("http://localhost", {
...options,
fetch: customFetch
});
};
//#endregion
export { testClient };