Skip to content

feat: ANT-2579 - Create a new projet #78

feat: ANT-2579 - Create a new projet

feat: ANT-2579 - Create a new projet #78

Triggered via pull request January 29, 2025 16:02
Status Failure
Total duration 54s
Artifacts

build.yml

on: pull_request
SonarQube Cloud
44s
SonarQube Cloud
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
src/hooks/test/useHandlePinnedProjectList.test.tsx > useHandlePinnedProjectList > should trigger getPinnedProject method on init and call dispatch to update pinned project list correctly: src/hooks/test/useHandlePinnedProjectList.test.tsx#L112
AssertionError: expected "fetchPinnedProjects" to return with: [ { id: '1', …(8) }, …(2) ] at least once Received: 1st fetchPinnedProjects call return: - Expected: Array [ Object { "createdBy": "MOUAD Paris test", "creationDate": "2024-07-25T10:09:41", "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", "id": "1", "name": "Bilan previsionnel 2027", "pinned": true, "projectId": "1", "studies": Array [ 1, 2, 3, ], "tags": Array [ "gaz", "elec", "antares", "misc", "tag2 antares", "area link", ], }, Object { "createdBy": "Taher benjelloun amine", "creationDate": "2024-07-25T10:09:41", "description": "description2023", "id": "2", "name": "Bilan previsionnel 2023", "pinned": true, "projectId": "2", "studies": Array [ 6, 5, 9, ], "tags": Array [ "bilan 22", ], }, Object { "createdBy": "zayd guillaume pegase", "creationDate": "2024-07-25T10:09:41", "description": "In the world of software development, achieving perfection is a journey rather than a destination.", "id": "3", "name": "Bilan previsionnel 2025", "pinned": true, "projectId": "3", "studies": Array [ 7, 8, ], "tags": Array [ "figma", "config", "modal", ], }, ] + Received: Promise {} Number of calls: 1 Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> ❯ src/hooks/test/useHandlePinnedProjectList.test.tsx:112:35 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
src/hooks/test/useHandlePinnedProjectList.test.tsx > useHandlePinnedProjectList > should call handlePinProject that calls pinProject and dispatch and update pinned project list correctly: src/hooks/test/useHandlePinnedProjectList.test.tsx#L154
AssertionError: expected "pinProject" to return with: { id: '3', …(8) } at least once Received: 1st pinProject call return: - Object { - "createdBy": "zayd guillaume pegase", - "creationDate": "2024-07-25T10:09:41", - "description": "In the world of software development, achieving perfection is a journey rather than a destination.", - "id": "3", - "name": "Bilan previsionnel 2025", - "pinned": true, - "projectId": "3", - "studies": Array [ - 7, - 8, - ], - "tags": Array [ - "figma", - "config", - "modal", - ], - } + Promise {} Number of calls: 1 Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> ❯ src/hooks/test/useHandlePinnedProjectList.test.tsx:154:26 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
SonarQube Cloud
Process completed with exit code 1.
SonarQube Cloud
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/[email protected]. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down