()
| 19 | const nodeVersionV20OrLater = parseInt(process.version.slice(1).split('.')[0]) >= 20 |
| 20 | |
| 21 | const createBodyLimitApp = () => { |
| 22 | const app = new Hono() |
| 23 | |
| 24 | app.post( |
| 25 | '/', |
| 26 | bodyLimit({ |
| 27 | maxSize: 1024 * 1024, |
| 28 | onError: (c) => c.text('Payload exceeded', 413), |
| 29 | }), |
| 30 | (c) => c.text('ok') |
| 31 | ) |
| 32 | |
| 33 | return app |
| 34 | } |
| 35 | |
| 36 | describe('autoCleanupIncoming: true (default)', () => { |
| 37 | let address: AddressInfo |
no outgoing calls
no test coverage detected
searching dependent graphs…