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

inclusion-numerique / coop-mediation-numerique / ff465997-5449-4f03-b5eb-3f66575f993a

21 Apr 2026 08:25AM UTC coverage: 10.612% (+3.1%) from 7.466%
ff465997-5449-4f03-b5eb-3f66575f993a

push

circleci

marc-gavanier
fix: correct admin fixture IDs and emails

Fix Kevin Troadec ID and email (kevin.troadec@beta.gouv.fr),
fix Adrien Turpin ID to match production database.

699 of 10549 branches covered (6.63%)

Branch coverage included in aggregate %.

2167 of 16457 relevant lines covered (13.17%)

1.99 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

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

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
  ) {
15
    return
×
16
  }
17

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

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

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