MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / makeReply

Function makeReply

apps/api/src/hooks/is-bot.hook.test.ts:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20const { isBotHook } = await import('./is-bot.hook');
21
22function makeReply() {
23 const status = vi.fn();
24 const send = vi.fn();
25 const reply = { status, send };
26 status.mockReturnValue(reply);
27 send.mockReturnValue(reply);
28 return { reply: reply as unknown as FastifyReply, status, send };
29}
30
31function makeReq(overrides: Partial<FastifyRequest> = {}) {
32 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected