À propos
Apprenez-en plus sur notre histoire, notre équipe et nos méthodes
From f7ccd021e9ba4b60f53aaf2965f4c6642f0e1f66 Mon Sep 17 00:00:00 2001
From: Maxime Golfier <25312957+maxgfr@users.noreply.github.com>
Date: Tue, 10 Sep 2024 12:00:08 +0200
Subject: [PATCH] feat(tests): ajout du module de testing (#6096)
* fix: tests
* fix: tests
* fix: command
* fix: merge date
* fix: tests
* fix: tests
* fix: tests
* fix: tests
---
.../__snapshots__/a-propos.test.tsx.snap | 188 ++--
.../droit-du-travail.test.js.snap | 614 ++++++------
.../fiche-ministere-travail.test.tsx.snap | 300 +++---
.../glossaire-[slug].test.tsx.snap | 166 ++--
.../__snapshots__/glossaire.test.tsx.snap | 226 ++---
.../modeles-de-courriers-[slug].test.tsx.snap | 308 +++---
.../modeles-de-courriers.test.tsx.snap | 208 ++--
.../__snapshots__/recherche.test.js.snap | 174 ++--
.../__snapshots__/themes.test.tsx.snap | 192 ++--
.../code-du-travail-frontend/jest.config.js | 6 +-
.../code-du-travail-frontend/next.config.mjs | 1 +
.../code-du-travail-frontend/package.json | 2 +-
.../code-du-travail-frontend/panda.config.ts | 1 +
.../__snapshots__/Feedback.test.js.snap | 88 +-
.../__snapshots__/ReferenceList.test.js.snap | 32 +-
.../ReferencesJuridiques.test.js.snap | 42 +-
.../AccessibilityModal.test.js.snap | 22 +-
.../__snapshots__/Answer.test.js.snap | 888 +++++++++---------
.../__snapshots__/Article.test.js.snap | 56 +-
.../__snapshots__/Breadcrumbs.test.js.snap | 22 +-
.../__snapshots__/ContactModal.test.js.snap | 20 +-
.../__tests__/__snapshots__/Html.test.js.snap | 2 +-
.../__snapshots__/RelatedItems.test.js.snap | 42 +-
.../ServiceRenseignement.test.js.snap | 28 +-
.../ServiceRenseignementModal.test.js.snap | 38 +-
.../__snapshots__/Share.test.js.snap | 28 +-
.../__snapshots__/Custom.test.js.snap | 18 +-
.../DisplayContentContribution.test.tsx | 30 +-
.../__tests__/ReferencesJuridique.test.tsx | 24 +-
.../DisplayContentContribution.test.tsx.snap | 192 ++--
.../__snapshots__/index.test.js.snap | 822 ++++++++--------
.../__snapshots__/Search.test.js.snap | 118 +--
.../__snapshots__/SearchModal.test.js.snap | 20 +-
.../FicheServicePublic.test.js.snap | 324 +++----
.../__tests__/ElementBuilder.test.js | 8 +-
.../__snapshots__/Accordion.test.js.snap | 100 +-
.../FragmentConditionne.test.tsx.snap | 38 +-
.../__snapshots__/Image.test.tsx.snap | 18 +-
.../__tests__/__snapshots__/List.test.js.snap | 6 +-
.../__snapshots__/OuSAdresser.test.js.snap | 10 +-
.../__snapshots__/ServiceEnLigne.test.js.snap | 12 +-
.../__snapshots__/Table.test.js.snap | 2 +-
.../__snapshots__/Tabulator.test.js.snap | 66 +-
.../__snapshots__/Title.test.js.snap | 4 +-
.../layout/__tests__/BrandTop.test.tsx | 10 +
.../modules/layout/__tests__/Footer.test.tsx | 10 +
.../layout/__tests__/NeedMoreInfo.test.tsx | 10 +
.../__snapshots__/BrandTop.test.tsx.snap | 9 +
.../__snapshots__/Footer.test.tsx.snap | 448 +++++++++
.../__snapshots__/NeedMoreInfo.test.tsx.snap | 42 +
.../header/__tests__/HeaderDsfr.test.tsx | 11 +
.../header/__tests__/SearchInput.test.tsx | 18 +
.../__snapshots__/HeaderDsfr.test.tsx.snap | 445 +++++++++
.../__snapshots__/SearchInput.test.tsx.snap | 26 +
.../src/modules/layout/index.tsx | 14 +-
.../__tests__/MentionsLegales.test.tsx | 10 +
.../MentionsLegales.test.tsx.snap | 123 +++
.../modules/stats/__tests__/Stats.test.tsx | 17 +
.../stats/__tests__/StatsDisplay.test.tsx | 12 +
.../__snapshots__/Stats.test.tsx.snap | 128 +++
.../__snapshots__/StatsDisplay.test.tsx.snap | 31 +
.../__snapshots__/index.test.tsx.snap | 48 +-
.../__snapshots__/Result.test.tsx.snap | 38 +-
.../__snapshots__/index.test.tsx.snap | 52 +-
.../__snapshots__/Result.test.js.snap | 176 ++--
.../__snapshots__/Status.test.js.snap | 118 +--
.../__snapshots__/index.test.tsx.snap | 52 +-
.../__snapshots__/Result.test.tsx.snap | 56 +-
.../__snapshots__/index.test.tsx.snap | 52 +-
.../__snapshots__/Salaires.test.js.snap | 62 +-
.../__snapshots__/TypeContrat.test.js.snap | 18 +-
.../TypeRemuneration.test.js.snap | 18 +-
.../__tests__/__snapshots__/CDD.test.js.snap | 80 +-
.../__tests__/__snapshots__/CTT.test.js.snap | 80 +-
.../__snapshots__/Indemnite.test.js.snap | 140 +--
.../__snapshots__/InfosGenerales.test.js.snap | 180 ++--
.../__snapshots__/Remuneration.test.js.snap | 96 +-
.../__snapshots__/SelectQuestion.test.js.snap | 28 +-
.../StepInformations.test.tsx.snap | 2 +-
.../__snapshots__/StepList.test.js.snap | 22 +-
.../__snapshots__/Wizard.test.tsx.snap | 174 ++--
.../__snapshots__/YesNoQuestion.test.js.snap | 20 +-
.../__snapshots__/SearchResults.test.js.snap | 174 ++--
.../test/jest.setup.js | 14 +
yarn.lock | 361 ++++++-
85 files changed, 5317 insertions(+), 3614 deletions(-)
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/__tests__/BrandTop.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/__tests__/Footer.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/__tests__/NeedMoreInfo.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/__tests__/__snapshots__/BrandTop.test.tsx.snap
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/__tests__/__snapshots__/Footer.test.tsx.snap
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/__tests__/__snapshots__/NeedMoreInfo.test.tsx.snap
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/header/__tests__/HeaderDsfr.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/header/__tests__/SearchInput.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/header/__tests__/__snapshots__/HeaderDsfr.test.tsx.snap
create mode 100644 packages/code-du-travail-frontend/src/modules/layout/header/__tests__/__snapshots__/SearchInput.test.tsx.snap
create mode 100644 packages/code-du-travail-frontend/src/modules/mentions-legales/__tests__/MentionsLegales.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/mentions-legales/__tests__/__snapshots__/MentionsLegales.test.tsx.snap
create mode 100644 packages/code-du-travail-frontend/src/modules/stats/__tests__/Stats.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/stats/__tests__/StatsDisplay.test.tsx
create mode 100644 packages/code-du-travail-frontend/src/modules/stats/__tests__/__snapshots__/Stats.test.tsx.snap
create mode 100644 packages/code-du-travail-frontend/src/modules/stats/__tests__/__snapshots__/StatsDisplay.test.tsx.snap
diff --git a/packages/code-du-travail-frontend/__tests__/__snapshots__/a-propos.test.tsx.snap b/packages/code-du-travail-frontend/__tests__/__snapshots__/a-propos.test.tsx.snap
index 70e766c682..360117cf3d 100644
--- a/packages/code-du-travail-frontend/__tests__/__snapshots__/a-propos.test.tsx.snap
+++ b/packages/code-du-travail-frontend/__tests__/__snapshots__/a-propos.test.tsx.snap
@@ -3,38 +3,38 @@
exports[`
Apprenez-en plus sur notre histoire, notre équipe et nos méthodes