WIP: Encapsulate axios calls in an Api class #3867
Annotations
10 errors and 1 warning
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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/
|
This job failed
Loading