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

inclusion-numerique / coop-mediation-numerique / b7fba47c-fb4e-4562-b3c7-13ac0be3378f

22 May 2026 11:06AM UTC coverage: 9.997% (+3.0%) from 6.955%
b7fba47c-fb4e-4562-b3c7-13ac0be3378f

push

circleci

web-flow
Merge pull request #500 from inclusion-numerique/fix/sync-dataspace-duplicates

fix: prevent dataspace sync from creating duplicate structures

686 of 10884 branches covered (6.3%)

Branch coverage included in aggregate %.

7 of 19 new or added lines in 2 files covered. (36.84%)

905 existing lines in 92 files now uncovered.

2117 of 17154 relevant lines covered (12.34%)

1.98 hits per line

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

77.78
/apps/web/src/features/structures/formationLabel.ts
1
import { labelsToOptions } from '@app/ui/components/Form/utils/options'
1✔
2
import { FormationLabel } from '@gouvfr-anct/lieux-de-mediation-numerique'
1✔
3
import type { FormationLabel as PrismaFormationLabel } from '@prisma/client'
4

UNCOV
5
export const formationLabelLabels: Record<
×
6
  PrismaFormationLabel,
7
  FormationLabel
8
> = {
1✔
9
  FormeAMonEspaceSante: FormationLabel.FormeAMonEspaceSante,
10
  FormeADuplex: FormationLabel.FormeADuplex,
11
  ArniaMednum: FormationLabel.ArniaMednum,
12
  CollectifRessourcesEtActeursReemploi:
13
    FormationLabel.CollectifRessourcesEtActeursReemploi,
14
  FabriquesDeTerritoire: FormationLabel.FabriquesDeTerritoire,
15
  LesEclaireurs: FormationLabel.LesEclaireurs,
16
  MesPapiers: FormationLabel.MesPapiers,
17
  Ordi3: FormationLabel.Ordi3,
18
  SudLabs: FormationLabel.SudLabs,
19
}
20

UNCOV
21
export const formationLabelKeys: Record<FormationLabel, PrismaFormationLabel> =
×
22
  Object.fromEntries(
1✔
23
    Object.entries(formationLabelLabels).map(([key, value]) => [value, key]),
9✔
24
  ) as Record<FormationLabel, PrismaFormationLabel>
25

26
export type FormationLabelLabel = keyof typeof formationLabelLabels
27

28
export const formationLabelValues = Object.keys(formationLabelLabels) as [
1✔
29
  FormationLabelLabel,
30
  ...FormationLabelLabel[],
31
]
32

33
export const formationLabelOptions = labelsToOptions(formationLabelLabels)
1✔
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