()
| 20 | const { isBotHook } = await import('./is-bot.hook'); |
| 21 | |
| 22 | function 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 | |
| 31 | function makeReq(overrides: Partial<FastifyRequest> = {}) { |
| 32 | return { |