Skip to content

chore(deps): update dependency vitest to v1.6.0 #24373

chore(deps): update dependency vitest to v1.6.0

chore(deps): update dependency vitest to v1.6.0 #24373

Triggered via pull request November 26, 2024 16:16
Status Failure
Total duration 3m 26s
Artifacts

build_frontend_prs.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Unhandled error: frontend/src/component/personalDashboard/createChartData.ts#L1
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/personalDashboard/createChartData.ts:1:1 This error originated in "src/component/personalDashboard/PersonalDashboard.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "Render personal dashboard for a long running project". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
src/hooks/useRecentlyVisited.test.tsx: frontend/src/component/insights/componentsChart/UsersChart/UsersChart.tsx#L3
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/insights/componentsChart/UsersChart/UsersChart.tsx:3:31
src/component/changeRequest/ChangeRequest.test.tsx: frontend/src/component/insights/componentsChart/UsersChart/UsersChart.tsx#L3
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/insights/componentsChart/UsersChart/UsersChart.tsx:3:31
src/component/insights/Insights.test.tsx: frontend/src/component/insights/componentsChart/UsersChart/UsersChart.tsx#L3
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/insights/componentsChart/UsersChart/UsersChart.tsx:3:31
src/component/personalDashboard/PersonalDashboard.test.tsx > Render personal dashboard for a long running project: frontend/src/component/personalDashboard/PersonalDashboard.test.tsx#L135
TestingLibraryElementError: Unable to find an element with the text: Got it, let's get started!. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div /> </body> Ignored nodes: comments, script, style <body> <div /> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/component/personalDashboard/PersonalDashboard.test.tsx:135:45
src/component/personalDashboard/PersonalDashboard.test.tsx > Render personal dashboard for a new project: frontend/src/component/personalDashboard/createChartData.ts#L1
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/personalDashboard/createChartData.ts:1:1
src/component/menu/__tests__/routes.test.tsx: frontend/src/component/insights/componentsChart/UsersChart/UsersChart.tsx#L3
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/insights/componentsChart/UsersChart/UsersChart.tsx:3:31
src/component/insights/componentsChart/UpdatesPerEnvironmentTypeChart/group-by-date.test.ts: frontend/src/component/insights/componentsChart/UpdatesPerEnvironmentTypeChart/UpdatesPerEnvironmentTypeChart.tsx#L3
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/insights/componentsChart/UpdatesPerEnvironmentTypeChart/UpdatesPerEnvironmentTypeChart.tsx:3:31
src/component/layout/MainLayout/NavigationSidebar/NavigationSidebar.test.tsx: frontend/src/component/insights/componentsChart/UsersChart/UsersChart.tsx#L3
SyntaxError: Named export '_adapters' not found. The requested module 'chart.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from 'chart.js'; const { _adapters } = pkg; ❯ src/component/insights/componentsChart/UsersChart/UsersChart.tsx:3:31
build
Process completed with exit code 1.