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

inclusion-numerique / coop-mediation-numerique / 3de2f5c2-ec70-46ec-b81f-a7a2106e504e

02 Feb 2026 11:11PM UTC coverage: 7.372% (-3.4%) from 10.731%
3de2f5c2-ec70-46ec-b81f-a7a2106e504e

push

circleci

web-flow
Merge pull request #407 from inclusion-numerique/dev

release

469 of 9672 branches covered (4.85%)

Branch coverage included in aggregate %.

0 of 28 new or added lines in 6 files covered. (0.0%)

1237 existing lines in 145 files now uncovered.

1330 of 14731 relevant lines covered (9.03%)

40.64 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