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

supabase / storage / 24521530770

16 Apr 2026 04:22PM UTC coverage: 67.954% (-14.6%) from 82.572%
24521530770

Pull #1027

github

web-flow
Merge e8aa49f71 into 473aa5c10
Pull Request #1027: fix: drop jest and its dependencies

2969 of 4870 branches covered (60.97%)

Branch coverage included in aggregate %.

39 of 41 new or added lines in 6 files covered. (95.12%)

33 existing lines in 23 files now uncovered.

6408 of 8929 relevant lines covered (71.77%)

404.56 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(
532✔
5
    fastify.initialConfig.onProtoPoisoning ?? 'error',
532!
6
    fastify.initialConfig.onConstructorPoisoning ?? 'error'
532!
7
  )
8

9
  fastify.addContentTypeParser('application/json', { parseAs: 'string' }, (request, body, done) => {
532✔
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