(c: Context)
| 3404 | |
| 3405 | test('infer the correct response type with 2 middleware, only one returning response', () => { |
| 3406 | const middleware1 = async (c: Context) => { |
| 3407 | if (Math.random() > 0.5) { |
| 3408 | return c.json( |
| 3409 | { |
| 3410 | q: true, |
| 3411 | }, |
| 3412 | 200 |
| 3413 | ) |
| 3414 | } |
| 3415 | } |
| 3416 | const middleware2 = async () => {} |
| 3417 | |
| 3418 | const routes = new Hono().get('/', middleware1, middleware2, handler) |
nothing calls this directly
no test coverage detected
searching dependent graphs…