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

inclusion-numerique / coop-mediation-numerique / 10b7467f-6706-4012-9cfc-0c336b9de477

01 Apr 2026 03:31PM UTC coverage: 7.472% (-3.2%) from 10.692%
10b7467f-6706-4012-9cfc-0c336b9de477

push

circleci

web-flow
Merge pull request #467 from inclusion-numerique/refactor/ajouter-lieux

refactor(inscription): extract ajouterLieuxActivite into modular use-case

500 of 10544 branches covered (4.74%)

Branch coverage included in aggregate %.

145 of 186 new or added lines in 15 files covered. (77.96%)

1379 existing lines in 152 files now uncovered.

1500 of 16224 relevant lines covered (9.25%)

36.99 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