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

inclusion-numerique / coop-mediation-numerique / fd0f793a-a8c6-4a69-81c3-56827ded376f

09 Apr 2026 01:22PM UTC coverage: 7.465% (-3.1%) from 10.614%
fd0f793a-a8c6-4a69-81c3-56827ded376f

push

circleci

web-flow
Merge pull request #472 from inclusion-numerique/feat/api-beneficiaires

feat(api): add beneficiaires data to activites API endpoint

500 of 10550 branches covered (4.74%)

Branch coverage included in aggregate %.

0 of 11 new or added lines in 1 file covered. (0.0%)

1379 existing lines in 153 files now uncovered.

1500 of 16241 relevant lines covered (9.24%)

36.95 hits per line

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

39.13
/apps/web/src/utils/yesNoBooleanOptions.ts
1
import { labelsToOptions } from '@app/ui/components/Form/utils/options'
1✔
2

3
export const yesNoLabels = {
1✔
4
  yes: 'Oui',
5
  no: 'Non',
6
} as const
7

8
export type YesOrNo = keyof typeof yesNoLabels
9

10
export const yesOrNo = Object.keys(yesNoLabels) as [keyof typeof yesNoLabels]
1✔
11

12
export const yesNoBooleanOptions = labelsToOptions(yesNoLabels)
1✔
13

14
export const yesNoToBoolean = (value: YesOrNo): boolean => value === 'yes'
1✔
15
export const booleanToYesNo = (boolean: boolean): YesOrNo =>
1✔
16
  boolean ? 'yes' : 'no'
×
17

18
export const optionalBooleanToYesNo = (value: boolean | undefined | null) =>
1✔
19
  value === undefined || value === null ? value : booleanToYesNo(value)
×
20

21
export const yesNoToOptionalBoolean = (
1✔
22
  value: YesOrNo | undefined | null,
UNCOV
23
): boolean | undefined => (value ? value === 'yes' : undefined)
×
24

25
export const booleanToYesNoLabel = (boolean: boolean): string =>
1✔
26
  boolean ? yesNoLabels.yes : yesNoLabels.no
×
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