stable

Clone or download

Read-only

chore: vitest -> jest for project-sidebar-internal and fp-feedback

Part of request #27556: Migrate Vite-based packages to Vitest partial revert of git #tuleap/stable/73dbd186f7a1216f0e1bb136714b53214a1a2c94 Recently, we have encountered issues where sometimes the CI will get stuck on the project-sidebar-internal or fp-feedback JS tests. Some process fails to exit properly and the npm script waits for them forever. The test then hits our 1 hour timeout and is marked as failed. The issue seems to come from vitest or vite, but we cannot seem to reproduce it consistently. In order to unblock the dev team and avoid more false negatives CI runs, this contribution switches back to Jest for those two libs. We can switch them back to Vitest later when the issue is resolved. Change-Id: I2aebebe708661d2b01b2f716d03d49c3b7d9e7ac

Modified Files

Name
A lib/frontend/fp-feedback/jest.config.js +28 −0 Go to diff View file
M lib/frontend/fp-feedback/package.json +6 −7 Go to diff View file
M lib/frontend/fp-feedback/src/feedback.test.ts +11 −1 Go to diff View file
M lib/frontend/fp-feedback/tsconfig.json +2 −1 Go to diff View file
A lib/frontend/project-sidebar-internal/jest.config.js +35 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/package.json +3 −4 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/LinkedProjects.test.ts +2 −3 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/PrivacyBadge.test.ts +2 −3 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/ProjectAnnouncement.test.ts +2 −3 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/ProjectFlags.test.ts +2 −3 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/SidebarHeader.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/LinkedProjects.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/PrivacyBadge.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/ProjectFlags.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/SidebarHeader.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/ProjectSidebar.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/SidebarCollapseButton.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/SidebarFooter.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/SidebarLogo.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Tools/ToolList.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Tools/ToolPresenter.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/__snapshots__/ProjectSidebar.test.ts.snap +6 −18 Go to diff View file
M lib/frontend/project-sidebar-internal/src/configuration.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/load-custom-element.test.ts +1 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/shortcuts.test.ts +2 −3 Go to diff View file
M lib/frontend/project-sidebar-internal/src/strict-inject.test.ts +1 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/url-sanitizer.test.ts +0 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/tsconfig.json +1 −1 Go to diff View file