Skip to content

Update npm dependencies (especially @wordpress) #10020

Update npm dependencies (especially @wordpress)

Update npm dependencies (especially @wordpress) #10020

Triggered via pull request January 15, 2025 16:57
Status Failure
Total duration 3m 24s
Artifacts

js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 13 warnings
JS Testing: assets/data-port/export/store/index.test.js#L76
Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 5 Object { "error": "Request error", + "job": Object { + "files": undefined, + "id": 5, + "status": "completed", + }, } at Object.toEqual (/home/runner/work/***/***/assets/data-port/export/store/index.test.js:76:30) at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/***/***/node_modules/jest-runner/build/testWorker.js:106:12)
JS Testing: assets/data-port/export/store/index.test.js#L157
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) - Expected + Received Object { "method": "DELETE", - "path": "/***-internal/v1/export/4", + "path": "/***-internal/v1/export/5", }, Number of calls: 1 at Object.toHaveBeenCalledWith (/home/runner/work/***/***/assets/data-port/export/store/index.test.js:157:22)
JS Testing: assets/data-port/export/store/index.test.js#L192
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: {"method": "POST", "path": "/***-internal/v1/export/7/process"} Number of calls: 0 Ignored nodes: comments, script, style <html> <head /> <body /> </html> at toHaveBeenCalledWith (/home/runner/work/***/***/assets/data-port/export/store/index.test.js:192:23) at runWithExpensiveErrorDiagnosticsDisabled (/home/runner/work/***/***/node_modules/@testing-library/dom/dist/config.js:47:12) at checkCallback (/home/runner/work/***/***/node_modules/@testing-library/dom/dist/wait-for.js:124:77) at /home/runner/work/***/***/node_modules/@testing-library/dom/dist/wait-for.js:82:9
JS Testing: assets/data-port/export/store/index.test.js#L231
Error: expect(received).toEqual(expected) // deep equality Expected: "Error 1. Error 2." Received: undefined at Object.toEqual (/home/runner/work/***/***/assets/data-port/export/store/index.test.js:231:47)
JS Testing: assets/shared/structure/structure-store.test.js#L70
Error: expect(jest.fn()).toHaveBeenCalled() Expected number of calls: >= 1 Received number of calls: 0 at Object.toHaveBeenCalled (/home/runner/work/***/***/assets/shared/structure/structure-store.test.js:70:29) at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/***/***/node_modules/jest-runner/build/testWorker.js:106:12)
JS Testing: assets/shared/structure/structure-store.test.js#L78
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: {"data": "new", "method": "POST", "path": "/***-internal/v1/test-api/1"} Number of calls: 0 at Object.toHaveBeenCalledWith (/home/runner/work/***/***/assets/shared/structure/structure-store.test.js:78:22) at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/***/***/node_modules/jest-runner/build/testWorker.js:106:12)
JS Testing: assets/shared/structure/structure-store.test.js#L100
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected) Expected number of calls: 1 Received number of calls: 0 at Object.toHaveBeenCalledTimes (/home/runner/work/***/***/assets/shared/structure/structure-store.test.js:100:22) at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/***/***/node_modules/jest-runner/build/testWorker.js:106:12)
JS Testing: assets/home/tasks-section/task-item.test.js#L93
TypeError: _components.Tooltip.mockImplementation is not a function at Object.mockImplementation (/home/runner/work/***/***/assets/home/tasks-section/task-item.test.js:93:11) at Promise.then.completed (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/***/***/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/***/***/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/***/***/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/***/***/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/***/***/node_modules/jest-runner/build/testWorker.js:106:12)
JS Testing
Process completed with exit code 1.
JS Testing
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
TypeScript Checking
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
JS Linting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
JS Linting: assets/admin/course-pre-publish-panel/course-pre-publish-panel.js#L7
PluginPrePublishPanel not found in '@wordpress/editor'
JS Linting: assets/admin/editor-wizard/steps/lesson-details-step.js#L40
React Hook useEffect has missing dependencies: 'setWizardData' and 'wizardData'. Either include them or remove the dependency array. If 'setWizardData' changes too often, find the parent component that defines it and wrap that definition in useCallback
JS Linting: assets/blocks/quiz/question-block/single-question.js#L12
PluginPostStatusInfo not found in '@wordpress/editor'
JS Linting: assets/blocks/quiz/question-block/single-question.js#L13
PluginPrePublishPanel not found in '@wordpress/editor'
JS Linting: assets/blocks/quiz/quiz-block/quiz-validation.js#L11
PluginPostStatusInfo not found in '@wordpress/editor'
JS Linting: assets/blocks/quiz/quiz-block/quiz-validation.js#L12
PluginPrePublishPanel not found in '@wordpress/editor'
JS Linting: assets/home/tasks-section/index.test.js#L52
Some tests seem to be commented
JS Linting: assets/home/tasks-section/index.test.js#L81
Some tests seem to be commented
JS Linting: assets/js/admin/course-settings-plugin-sidebar.js#L13
PluginDocumentSettingPanel not found in '@wordpress/editor'
JS Linting: assets/js/admin/course-settings-plugin-sidebar.js#L14
PluginSidebar not found in '@wordpress/editor'