From e970331961cdc0941a5ef9fe4fd42033ce748c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Wed, 20 Nov 2024 19:13:56 +0100 Subject: [PATCH] =?UTF-8?q?C=20pu=20p=C3=A9t=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../banner => cypress/e2e}/bannerBanner.cy.tsx | 6 +++--- {src/components/box => cypress/e2e}/boxBox.cy.tsx | 4 ++-- .../e2e}/carouselCarousel.cy.tsx | 4 ++-- .../e2e}/contactContactList.cy.tsx | 4 ++-- .../navbar => cypress/e2e}/navbarNavbar.cy.tsx | 6 +++--- .../partner => cypress/e2e}/partnerPartner.cy.tsx | 4 ++-- .../e2e}/socialnetworkSocialNetworkList.cy.tsx | 4 ++-- .../team => cypress/e2e}/teamTeam.cy.tsx | 4 ++-- .../e2e}/timelineTimeline.cy.tsx | 4 ++-- .../e2e}/timelineTimelineProject.cy.tsx | 4 ++-- package-lock.json | 14 ++++++-------- tsconfig.app.tsbuildinfo | 2 +- tsconfig.cypress.json | 15 +++++++++++++++ tsconfig.node.json | 3 ++- tsconfig.tsbuildinfo | 1 + 15 files changed, 47 insertions(+), 32 deletions(-) rename {src/components/banner => cypress/e2e}/bannerBanner.cy.tsx (92%) rename {src/components/box => cypress/e2e}/boxBox.cy.tsx (94%) rename {src/components/carousel => cypress/e2e}/carouselCarousel.cy.tsx (90%) rename {src/components/contact => cypress/e2e}/contactContactList.cy.tsx (88%) rename {src/layouts/navbar => cypress/e2e}/navbarNavbar.cy.tsx (89%) rename {src/components/partner => cypress/e2e}/partnerPartner.cy.tsx (96%) rename {src/components/socialnetwork => cypress/e2e}/socialnetworkSocialNetworkList.cy.tsx (83%) rename {src/components/team => cypress/e2e}/teamTeam.cy.tsx (95%) rename {src/components/timeline => cypress/e2e}/timelineTimeline.cy.tsx (98%) rename {src/components/timeline => cypress/e2e}/timelineTimelineProject.cy.tsx (87%) create mode 100644 tsconfig.cypress.json create mode 100644 tsconfig.tsbuildinfo diff --git a/src/components/banner/bannerBanner.cy.tsx b/cypress/e2e/bannerBanner.cy.tsx similarity index 92% rename from src/components/banner/bannerBanner.cy.tsx rename to cypress/e2e/bannerBanner.cy.tsx index 41167de..fa4e328 100644 --- a/src/components/banner/bannerBanner.cy.tsx +++ b/cypress/e2e/bannerBanner.cy.tsx @@ -1,7 +1,7 @@ -import './banner.css'; -import '../../App.css'; +import '../../src/components/banner/banner.css'; +import '../../src/App.css'; import React from 'react'; -import { Banner } from './banner'; +import { Banner } from '../../src/components/banner/banner'; describe('', () => { it('renders the first Banner component correctly', () => { diff --git a/src/components/box/boxBox.cy.tsx b/cypress/e2e/boxBox.cy.tsx similarity index 94% rename from src/components/box/boxBox.cy.tsx rename to cypress/e2e/boxBox.cy.tsx index b2ac73f..8b696d8 100644 --- a/src/components/box/boxBox.cy.tsx +++ b/cypress/e2e/boxBox.cy.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { Box } from './box'; -import './box.css'; +import { Box } from '../../src/components/box/box'; +import '../../src/components/box/box.css'; describe('', () => { it('renders the first box', () => { diff --git a/src/components/carousel/carouselCarousel.cy.tsx b/cypress/e2e/carouselCarousel.cy.tsx similarity index 90% rename from src/components/carousel/carouselCarousel.cy.tsx rename to cypress/e2e/carouselCarousel.cy.tsx index 643ea66..93c3f7e 100644 --- a/src/components/carousel/carouselCarousel.cy.tsx +++ b/cypress/e2e/carouselCarousel.cy.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { Carousel } from './carousel'; -import './carousel.css'; +import { Carousel } from '../../src/components/carousel/carousel'; +import '../../src/components/carousel/carousel.css'; describe('', () => { it('renders the carousel with images and text', () => { diff --git a/src/components/contact/contactContactList.cy.tsx b/cypress/e2e/contactContactList.cy.tsx similarity index 88% rename from src/components/contact/contactContactList.cy.tsx rename to cypress/e2e/contactContactList.cy.tsx index c90be76..972fd97 100644 --- a/src/components/contact/contactContactList.cy.tsx +++ b/cypress/e2e/contactContactList.cy.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { ContactList } from './contact'; +import { ContactList } from '../../src/components/contact/contact'; import { Handbag } from 'iconoir-react'; -import './contact.css'; +import '../../src/components/contact/contact.css'; describe('', () => { it('renders the ContactList component correctly', () => { diff --git a/src/layouts/navbar/navbarNavbar.cy.tsx b/cypress/e2e/navbarNavbar.cy.tsx similarity index 89% rename from src/layouts/navbar/navbarNavbar.cy.tsx rename to cypress/e2e/navbarNavbar.cy.tsx index 45234d5..e098b97 100644 --- a/src/layouts/navbar/navbarNavbar.cy.tsx +++ b/cypress/e2e/navbarNavbar.cy.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import { Navbar } from './navbar'; +import { Navbar } from '../../src/layouts/navbar/navbar'; import { BrowserRouter as Router } from 'react-router-dom'; -import '../../App.css'; -import './navbar.css'; +import '../../src/App.css'; +import '../../src/layouts/navbar/navbar.css'; describe('', () => { it('renders the Navbar component correctly', () => { diff --git a/src/components/partner/partnerPartner.cy.tsx b/cypress/e2e/partnerPartner.cy.tsx similarity index 96% rename from src/components/partner/partnerPartner.cy.tsx rename to cypress/e2e/partnerPartner.cy.tsx index 16f4f7b..6fbbb4e 100644 --- a/src/components/partner/partnerPartner.cy.tsx +++ b/cypress/e2e/partnerPartner.cy.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { Partner } from './partner'; -import './partner.css'; +import { Partner } from '../../src/components/partner/partner'; +import '../../src/components/partner/partner.css'; describe('', () => { it('renders ISEN partenaire', () => { diff --git a/src/components/socialnetwork/socialnetworkSocialNetworkList.cy.tsx b/cypress/e2e/socialnetworkSocialNetworkList.cy.tsx similarity index 83% rename from src/components/socialnetwork/socialnetworkSocialNetworkList.cy.tsx rename to cypress/e2e/socialnetworkSocialNetworkList.cy.tsx index 3122c2b..4c2f1d6 100644 --- a/src/components/socialnetwork/socialnetworkSocialNetworkList.cy.tsx +++ b/cypress/e2e/socialnetworkSocialNetworkList.cy.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { SocialNetworkList } from './socialnetwork'; -import './socialnetwork.css'; +import { SocialNetworkList } from '../../src/components/socialnetwork/socialnetwork'; +import '../../src/components/socialnetwork/socialnetwork.css'; import { FaInstagram, FaYoutube, FaGithub } from 'react-icons/fa'; describe('', () => { diff --git a/src/components/team/teamTeam.cy.tsx b/cypress/e2e/teamTeam.cy.tsx similarity index 95% rename from src/components/team/teamTeam.cy.tsx rename to cypress/e2e/teamTeam.cy.tsx index 54a12c0..bc8c694 100644 --- a/src/components/team/teamTeam.cy.tsx +++ b/cypress/e2e/teamTeam.cy.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { Team } from './team'; -import './team.css'; +import { Team } from '../../src/components/team/team'; +import '../../src/components/team/team.css'; describe('', () => { it('renders the team with groups and members', () => { diff --git a/src/components/timeline/timelineTimeline.cy.tsx b/cypress/e2e/timelineTimeline.cy.tsx similarity index 98% rename from src/components/timeline/timelineTimeline.cy.tsx rename to cypress/e2e/timelineTimeline.cy.tsx index 2296e59..dfd2f38 100644 --- a/src/components/timeline/timelineTimeline.cy.tsx +++ b/cypress/e2e/timelineTimeline.cy.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { Timeline } from './timeline'; -import './timeline.css'; +import { Timeline } from '../../src/components/timeline/timeline'; +import '../../src/components/timeline/timeline.css'; describe('', () => { it('renders the Timeline component correctly', () => { diff --git a/src/components/timeline/timelineTimelineProject.cy.tsx b/cypress/e2e/timelineTimelineProject.cy.tsx similarity index 87% rename from src/components/timeline/timelineTimelineProject.cy.tsx rename to cypress/e2e/timelineTimelineProject.cy.tsx index 1ff6165..5d349e3 100644 --- a/src/components/timeline/timelineTimelineProject.cy.tsx +++ b/cypress/e2e/timelineTimelineProject.cy.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { TimelineProject } from './timeline'; -import './timeline.css'; +import { TimelineProject } from '../../src/components/timeline/timeline'; +import '../../src/components/timeline/timeline.css'; describe('', () => { it('renders the TimelineProject component correctly', () => { diff --git a/package-lock.json b/package-lock.json index b7d3e69..5af58c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -930,10 +930,9 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.0.tgz", - "integrity": "sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==", - "license": "Apache-2.0", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz", + "integrity": "sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==", "dependencies": { "levn": "^0.4.1" }, @@ -2852,10 +2851,9 @@ "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "license": "MIT", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", diff --git a/tsconfig.app.tsbuildinfo b/tsconfig.app.tsbuildinfo index 6264a32..d2045a5 100644 --- a/tsconfig.app.tsbuildinfo +++ b/tsconfig.app.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/banner/banner.tsx","./src/components/box/box.tsx","./src/components/carousel/carousel.tsx","./src/components/contact/contact.tsx","./src/components/partner/partner.tsx","./src/components/projectcard/projectcard.tsx","./src/components/projetheader/projectheadercard.tsx","./src/components/projetheader/projetheader.tsx","./src/components/socialnetwork/socialnetwork.tsx","./src/components/team/team.tsx","./src/hooks/scrolltotop.tsx","./src/hooks/usewindowssize.tsx","./src/layouts/footer/footer.tsx","./src/layouts/navbar/navbar.tsx","./src/pages/404/404.tsx","./src/pages/contact/contact.tsx","./src/pages/home/home.tsx","./src/pages/partenaires/partenaires.tsx","./src/pages/projets/projets.tsx"],"version":"5.6.3"} \ No newline at end of file +{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/banner/banner.tsx","./src/components/box/box.tsx","./src/components/carousel/carousel.tsx","./src/components/contact/contact.tsx","./src/components/partner/partner.tsx","./src/components/socialnetwork/socialnetwork.tsx","./src/components/team/team.tsx","./src/components/timeline/timeline.tsx","./src/hooks/scrolltotop.tsx","./src/hooks/usewindowssize.tsx","./src/layouts/footer/footer.tsx","./src/layouts/navbar/navbar.tsx","./src/pages/404/404.tsx","./src/pages/contact/contact.tsx","./src/pages/home/home.tsx","./src/pages/partenaires/partenaires.tsx","./src/pages/projets/projets.tsx"],"version":"5.6.3"} \ No newline at end of file diff --git a/tsconfig.cypress.json b/tsconfig.cypress.json new file mode 100644 index 0000000..e1edeb3 --- /dev/null +++ b/tsconfig.cypress.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "node", + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "isolatedModules": true, + "noEmit": true, + "strict": true + }, + "include": ["**/*.cy.ts", "**/*.cy.tsx"] +} \ No newline at end of file diff --git a/tsconfig.node.json b/tsconfig.node.json index 0d3d714..10a0027 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -18,5 +18,6 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.ts"], + "exclude": ["cypress/tests/**/*"] } diff --git a/tsconfig.tsbuildinfo b/tsconfig.tsbuildinfo new file mode 100644 index 0000000..2e20a11 --- /dev/null +++ b/tsconfig.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./vite.config.ts"],"errors":true,"version":"5.6.3"} \ No newline at end of file