• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 24515165756

16 Apr 2026 02:13PM UTC coverage: 67.902% (-14.7%) from 82.565%
24515165756

Pull #1027

github

web-flow
Merge 734d27a46 into fef8da0ac
Pull Request #1027: fix: drop jest and its dependencies

2962 of 4866 branches covered (60.87%)

Branch coverage included in aggregate %.

30 of 31 new or added lines in 6 files covered. (96.77%)

33 existing lines in 23 files now uncovered.

6399 of 8920 relevant lines covered (71.74%)

404.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/src/http/plugins/empty-json-body.ts
1
import { FastifyInstance } from 'fastify'
2

3
export function registerJsonParserAllowingEmptyBody(fastify: FastifyInstance) {
4
  const defaultJsonParser = fastify.getDefaultJsonParser(
530✔
5
    fastify.initialConfig.onProtoPoisoning ?? 'error',
530!
6
    fastify.initialConfig.onConstructorPoisoning ?? 'error'
530!
7
  )
8

9
  fastify.addContentTypeParser('application/json', { parseAs: 'string' }, (request, body, done) => {
530✔
10
    if (!body) {
5!
11
      done(null, null)
5✔
12
      return
5✔
13
    }
14

UNCOV
15
    const jsonBody = typeof body === 'string' ? body : body.toString('utf8')
×
16

17
    defaultJsonParser(request, jsonBody, done)
5✔
18
  })
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc