Skip to content

chore(rs-2024): mise à jour des données de la rentrée scolaire 2024 #201

chore(rs-2024): mise à jour des données de la rentrée scolaire 2024

chore(rs-2024): mise à jour des données de la rentrée scolaire 2024 #201

Triggered via pull request January 28, 2025 08:09
Status Failure
Total duration 4m 3s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 12 warnings
src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts > GET /api/formation/:cfd/indicators > Taux IJ > doit retourner les taux IJ nationaux: server/src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts#L214
AssertionError: expected [ { libelle: '2019+20', …(2) }, …(2) ] to deeply equal ArrayContaining{…} - Expected + Received - ArrayContaining [ + Array [ Object { "apprentissage": 0.2967, "libelle": "2019+20", "scolaire": 0.509, }, Object { "apprentissage": 0.4036, "libelle": "2020+21", - "scolaire": 0.5382, + "scolaire": 0.5379, }, Object { "apprentissage": 0.3954, "libelle": "2021+22", "scolaire": 0.5504, - }, - Object { - "apprentissage": 0.3791, - "libelle": "2022+23", - "scolaire": 0.5581, }, ] ❯ src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts:214:43
src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts > GET /api/formation/:cfd/indicators > Taux IJ > doit retourner les taux IJ regionaux (84): server/src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts#L258
AssertionError: expected [ { libelle: '2019+20', …(2) }, …(2) ] to deeply equal ArrayContaining{…} - Expected + Received - ArrayContaining [ + Array [ Object { "apprentissage": 0.6362, "libelle": "2019+20", "scolaire": 0.4757, }, Object { "apprentissage": 0.7, "libelle": "2020+21", - "scolaire": 0.4691, + "scolaire": 0.468, }, Object { "apprentissage": 0.6719, "libelle": "2021+22", "scolaire": 0.4935, - }, - Object { - "apprentissage": 0.6429, - "libelle": "2022+23", - "scolaire": 0.4911, }, ] ❯ src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts:258:43
src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts > GET /api/formation/:cfd/indicators > Taux IJ > doit retourner les taux IJ regionaux (84) même si une académie est spécifiée: server/src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts#L286
AssertionError: expected [ { libelle: '2019+20', …(2) }, …(2) ] to deeply equal ArrayContaining{…} - Expected + Received - ArrayContaining [ + Array [ Object { "apprentissage": 0.2518, "libelle": "2019+20", "scolaire": 0.5095, }, Object { "apprentissage": 0.375, "libelle": "2020+21", "scolaire": 0.5478, }, Object { "apprentissage": 0.4047, "libelle": "2021+22", "scolaire": 0.5769, - }, - Object { - "apprentissage": 0.4176, - "libelle": "2022+23", - "scolaire": 0.5826, }, ] ❯ src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts:286:43
src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts > GET /api/formation/:cfd/indicators > Taux IJ > doit retourner les taux IJ regionaux (84) même si un département est spécifié: server/src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts#L332
AssertionError: expected [ { libelle: '2019+20', …(2) }, …(2) ] to deeply equal ArrayContaining{…} - Expected + Received - ArrayContaining [ + Array [ Object { "apprentissage": 0.6362, "libelle": "2019+20", "scolaire": 0.4757, }, Object { "apprentissage": 0.7, "libelle": "2020+21", - "scolaire": 0.4691, + "scolaire": 0.468, }, Object { "apprentissage": 0.6719, "libelle": "2021+22", "scolaire": 0.4935, - }, - Object { - "apprentissage": 0.6429, - "libelle": "2022+23", - "scolaire": 0.4911, }, ] ❯ src/modules/data/usecases/getFormationIndicateurs/__tests__/getDomaineDeFormationIndicateurs.spec.ts:332:43
src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts > [GET]/region/:codeRegion > doit retrouver les données de la région Auvergne-Rhône-Alpes (84) pour un BTS (320): server/src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts#L107
AssertionError: expected undefined to be 15962 // Object.is equality - Expected: 15962 + Received: undefined ❯ Object.verifierEffectifEntree src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts:107:59 ❯ src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts:38:18
src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts > [GET]/region/:codeRegion > doit vérifier que des valeurs n'existes par pour des diplomes dans des régions: server/src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts#L113
AssertionError: expected undefined to be 4 // Object.is equality - Expected: 4 + Received: undefined ❯ Object.verifierNbFormations src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts:113:57 ❯ src/modules/data/usecases/getRegion/__tests__/getRegion.spec.ts:54:18
Tests
Process completed with exit code 1.
typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/ActiveEtablissementLayers.tsx#L43
The 'scolaireInvertedSinglePointLayer' object makes the dependencies of useEffect Hook (at line 117) change on every render. To fix this, wrap the initialization of 'scolaireInvertedSinglePointLayer' in its own useMemo() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/ActiveEtablissementLayers.tsx#L54
The 'apprentissageInvertedSinglePointLayer' object makes the dependencies of useEffect Hook (at line 117) change on every render. To fix this, wrap the initialization of 'apprentissageInvertedSinglePointLayer' in its own useMemo() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/ActiveEtablissementLayers.tsx#L65
The 'scolaireApprentissageInvertedSinglePointLayer' object makes the dependencies of useEffect Hook (at line 117) change on every render. To fix this, wrap the initialization of 'scolaireApprentissageInvertedSinglePointLayer' in its own useMemo() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/ActiveEtablissementLayers.tsx#L76
The 'onSinglePointClick' function makes the dependencies of useEffect Hook (at line 117) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'onSinglePointClick' in its own useCallback() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/CustomControls.tsx#L44
The 'loadImageOnMap' function makes the dependencies of useEffect Hook (at line 89) change on every render. To fix this, wrap the definition of 'loadImageOnMap' in its own useCallback() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/CustomControls.tsx#L58
The 'onZoomEnd' function makes the dependencies of useEffect Hook (at line 89) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'onZoomEnd' in its own useCallback() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/EtablissementsLayers.tsx#L41
The 'clusterLayer' object makes the dependencies of useEffect Hook (at line 183) change on every render. To fix this, wrap the initialization of 'clusterLayer' in its own useMemo() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/EtablissementsLayers.tsx#L75
The 'scolaireSinglePointLayer' object makes the dependencies of useEffect Hook (at line 183) change on every render. To fix this, wrap the initialization of 'scolaireSinglePointLayer' in its own useMemo() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/EtablissementsLayers.tsx#L86
The 'apprentissageSinglePointLayer' object makes the dependencies of useEffect Hook (at line 183) change on every render. To fix this, wrap the initialization of 'apprentissageSinglePointLayer' in its own useMemo() Hook
Tests: ui/app/(wrapped)/domaine-de-formation/[codeNsf]/components/FormationSection/Tabs/EtablissementsTab/Map/EtablissementsLayers.tsx#L97
The 'scolaireApprentissageSinglePointLayer' object makes the dependencies of useEffect Hook (at line 183) change on every render. To fix this, wrap the initialization of 'scolaireApprentissageSinglePointLayer' in its own useMemo() Hook