Skip to content

WIP: Encapsulate axios calls in an Api class #3867

WIP: Encapsulate axios calls in an Api class

WIP: Encapsulate axios calls in an Api class #3867

Triggered via push June 6, 2024 16:34
Status Failure
Total duration 28m 54s
Artifacts 1

ci-cd.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 3 warnings
lint: src/utils/apiCallHandler.js#L9
Delete `;`
lint: src/utils/apiCallHandler.js#L11
Delete `·`
lint: src/utils/apiCallHandler.js#L14
'post' is not defined
lint: src/utils/apiCallHandler.js#L15
'host' is not defined
lint: src/utils/apiCallHandler.js#L17
'headers' is not defined
lint: src/utils/apiCallHandler.js#L20
'put' is not defined
lint: src/utils/apiCallHandler.js#L21
'host' is not defined
lint: src/utils/apiCallHandler.js#L23
'headers' is not defined
lint: src/utils/apiCallHandler.js#L26
Delete `;`
test: src/redux/EditorSlice.test.js#L187
Error: expect(received).toHaveBeenCalledWith(...expected) Matcher error: received value must be a mock or spy function Received has value: undefined at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:187:35)
test: src/redux/EditorSlice.test.js#L191
TypeError: Cannot read properties of undefined (reading 'mockImplementationOnce') at Object.mockImplementationOnce (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:191:27) at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:293:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:226:10) at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:297:40) at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:233:3) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:135:9) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:130:9) at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:68:3) at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19) at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
test: src/redux/EditorSlice.test.js#L280
Error: expect(received).toHaveBeenCalledWith(...expected) Matcher error: received value must be a mock or spy function Received has value: undefined at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:280:35)
test: src/redux/EditorSlice.test.js#L284
TypeError: Cannot read properties of undefined (reading 'mockImplementationOnce') at Object.mockImplementationOnce (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:284:27) at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:293:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:226:10) at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:297:40) at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:233:3) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:135:9) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:130:9) at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:68:3) at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19) at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
test: src/redux/EditorSlice.test.js#L312
Error: expect(received).toHaveBeenCalledWith(...expected) Matcher error: received value must be a mock or spy function Received has value: undefined at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:312:25)
test: src/redux/EditorSlice.test.js#L316
TypeError: Cannot read properties of undefined (reading 'mockImplementationOnce') at Object.mockImplementationOnce (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:316:17) at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:293:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:226:10) at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:297:40) at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:233:3) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:135:9) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:130:9) at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:68:3) at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19) at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
test: src/redux/EditorSlice.test.js#L411
Error: expect(received).toHaveBeenCalledWith(...expected) Matcher error: received value must be a mock or spy function Received has value: undefined at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:411:27)
test: src/redux/EditorSlice.test.js#L418
TypeError: Cannot read properties of undefined (reading 'mockImplementationOnce') at Object.mockImplementationOnce (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:418:19) at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:293:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:226:10) at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:297:40) at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:233:3) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:135:9) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:130:9) at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:68:3) at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19) at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
test: src/redux/EditorSlice.test.js#L459
Error: expect(received).toHaveBeenCalledWith(...expected) Matcher error: received value must be a mock or spy function Received has value: undefined at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:459:29)
test: src/redux/EditorSlice.test.js#L463
TypeError: Cannot read properties of undefined (reading 'mockImplementationOnce') at Object.mockImplementationOnce (/home/runner/work/editor-ui/editor-ui/src/redux/EditorSlice.test.js:463:21) at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:293:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:226:10) at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:297:40) at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:233:3) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:135:9) at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:130:9) at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:68:3) at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19) at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
deploy-branch / build-deploy
Process completed with exit code 1.
test-cypress
Cypress tests: 36 failed
lint: src/components/Editor/Runners/PyodideRunner/PyodideRunner.jsx#L28
'api' is assigned a value but never used
test-cypress
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "cypress-artifacts". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
cypress-artifacts Expired
21.2 MB