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

inclusion-numerique / coop-mediation-numerique / e54bb7f1-0236-4207-bf15-3fc4e5393707

03 Feb 2026 03:34PM UTC coverage: 10.45% (+3.1%) from 7.372%
e54bb7f1-0236-4207-bf15-3fc4e5393707

push

circleci

hugues-m
chore: disable siret integration test / api times out

610 of 9672 branches covered (6.31%)

Branch coverage included in aggregate %.

1963 of 14950 relevant lines covered (13.13%)

1.8 hits per line

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

0.0
/apps/web/src/utils/removeUndefinedValues.ts
1
type NoUndefinedField<T> = {
2
  [P in keyof T]-?: T[P] extends Record<string, unknown>
3
    ? NoUndefinedField<T[P]>
4
    : Exclude<T[P], undefined>
5
}
6

7
export const removeUndefinedValues = <T>(data: T): NoUndefinedField<T> => {
×
8
  if (Array.isArray(data)) {
×
9
    return data.map((item) =>
×
10
      removeUndefinedValues(item),
×
11
    ) as unknown as NoUndefinedField<T>
12
  }
13
  if (data !== null && typeof data === 'object') {
×
14
    return Object.fromEntries(
×
15
      Object.entries(data).reduce(
16
        (accumulator, [key, value]) => {
17
          if (value !== undefined) {
×
18
            accumulator.push([key, removeUndefinedValues(value)])
×
19
          }
20
          return accumulator
×
21
        },
22
        [] as [string, unknown][],
23
      ),
24
    ) as NoUndefinedField<T>
25
  }
26
  return data as NoUndefinedField<T>
×
27
}
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