Skip to content

fix failed tests

fix failed tests #3206

GitHub Actions / Jest Unit Test Results failed Dec 10, 2024 in 0s

1 fail, 766 pass in 1m 44s

       1 files  ±  0       62 suites   - 1   1m 44s ⏱️ -4s
   767 tests  - 37     766 ✔️ ±0  0 💤 ±0  1  - 37 
1 077 runs   - 37  1 076 ✔️ ±0  0 💤 ±0  1  - 37 

Results for commit 575389c. ± Comparison against earlier commit 9544825.

Annotations

Check warning on line 0 in useRetrievalServicePoints should fetch retrieval service points

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

useRetrievalServicePoints should fetch retrieval service points (useRetrievalServicePoints should fetch retrieval service points) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: _core.useOkapiKy.mockImplementation is not a function
    at Object.mockImplementation (/home/runner/work/ui-requests/ui-requests/src/hooks/useRetrievalServicePoints/useRetrievalServicePoints.test.js:63:16)
    at Promise.then.completed (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/ui-requests/ui-requests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/ui-requests/ui-requests/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/ui-requests/ui-requests/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/ui-requests/ui-requests/node_modules/jest-runner/build/testWorker.js:106:12)