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

inclusion-numerique / coop-mediation-numerique / d042ddf5-824b-4a46-8c8f-8237a8853f64

25 Mar 2026 10:41AM UTC coverage: 10.692% (+3.8%) from 6.896%
d042ddf5-824b-4a46-8c8f-8237a8853f64

push

circleci

web-flow
Merge pull request #465 from inclusion-numerique/fix/brevo-shared-contacts

fix(brevo): handle shared Brevo account with Les Bases

699 of 10508 branches covered (6.65%)

Branch coverage included in aggregate %.

18 of 122 new or added lines in 13 files covered. (14.75%)

814 existing lines in 86 files now uncovered.

2168 of 16307 relevant lines covered (13.29%)

2.0 hits per line

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

0.0
/apps/web/src/utils/getZodValidationMutationError.ts
1
import { TRPCClientError } from '@trpc/client'
2

UNCOV
3
export const getZodValidationMutationError = (error: unknown) => {
×
UNCOV
4
  if (!(error instanceof TRPCClientError)) {
×
UNCOV
5
    return
×
6
  }
7

UNCOV
8
  if (
×
9
    !('data' in error) ||
×
10
    // If key is defined but value is undefined
11
    !error.data ||
12
    error.data.code !== 'BAD_REQUEST' ||
13
    error.data.httpStatus !== 400
14
  ) {
UNCOV
15
    return
×
16
  }
17

UNCOV
18
  try {
×
UNCOV
19
    const parsedMessage = JSON.parse(error.message) as {
×
20
      code: string
21
      message: string
22
      path: string[]
23
    }[]
24

UNCOV
25
    if (!Array.isArray(parsedMessage)) {
×
26
      return
×
27
    }
28

UNCOV
29
    return parsedMessage
×
30
  } catch {
31
    // Message is not valid json, this is not a zod error
32
  }
33
}
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