Skip to content

Fix minor mistakes #1895

Fix minor mistakes

Fix minor mistakes #1895

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

3 fail, 703 pass in 6m 41s

    1 files  ±0  266 suites  ±0   6m 41s ⏱️ +12s
706 tests ±0  703 ✔️  - 3  0 💤 ±0  3 +3 
714 runs  ±0  711 ✔️  - 3  0 💤 ±0  3 +3 

Results for commit e3b53fd. ± Comparison against earlier commit ea314e7.

Annotations

Check warning on line 0 in useSelectedPOVersionMethods should return object property by ID if ID and property exist in the map

See this annotation in the file changed.

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

useSelectedPOVersionMethods should return object property by ID if ID and property exist in the map (useSelectedPOVersionMethods should return object property by ID if ID and property exist in the map) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot use 'in' operator to search for 'id1' in property1
    at Object.getObjectPropertyById (/home/runner/work/ui-orders/ui-orders/src/common/hooks/useSelectedPOVersionMethods/useSelectedPOVersionMethods.js:17:11)
    at Object.getObjectPropertyById (/home/runner/work/ui-orders/ui-orders/src/common/hooks/useSelectedPOVersionMethods/useSelectedPOVersionMethods.test.js:36:34)
    at Promise.then.completed (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/ui-orders/ui-orders/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/ui-orders/ui-orders/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/ui-orders/ui-orders/node_modules/jest-runner/build/testWorker.js:106:12)

Check warning on line 0 in useSelectedPOVersionMethods should return deletedRecordLabel when ID is not found in the object

See this annotation in the file changed.

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

useSelectedPOVersionMethods should return deletedRecordLabel when ID is not found in the object (useSelectedPOVersionMethods should return deletedRecordLabel when ID is not found in the object) failed

artifacts/jest-junit/junit.xml
Raw output
TypeError: Cannot use 'in' operator to search for 'id2' in property1
    at Object.getObjectPropertyById (/home/runner/work/ui-orders/ui-orders/src/common/hooks/useSelectedPOVersionMethods/useSelectedPOVersionMethods.js:17:11)
    at Object.getObjectPropertyById (/home/runner/work/ui-orders/ui-orders/src/common/hooks/useSelectedPOVersionMethods/useSelectedPOVersionMethods.test.js:54:34)
    at Promise.then.completed (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/ui-orders/ui-orders/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/ui-orders/ui-orders/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/ui-orders/ui-orders/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/ui-orders/ui-orders/node_modules/jest-runner/build/testWorker.js:106:12)

Check warning on line 0 in useSelectedPOVersion should return PO version data

See this annotation in the file changed.

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

useSelectedPOVersion should return PO version data (useSelectedPOVersion should return PO version data) failed

artifacts/jest-junit/junit.xml
Raw output
Error: expect(received).toBeFalsy()

Received: true

Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div />
  </body>
</html>
    at toBeFalsy (/home/runner/work/ui-orders/ui-orders/src/components/PurchaseOrder/hooks/useSelectedPOVersion/useSelectedPOVersion.test.js:93:58)
    at runWithExpensiveErrorDiagnosticsDisabled (/home/runner/work/ui-orders/ui-orders/node_modules/@testing-library/dom/dist/config.js:47:12)
    at checkCallback (/home/runner/work/ui-orders/ui-orders/node_modules/@testing-library/dom/dist/wait-for.js:124:77)
    at checkRealTimersCallback (/home/runner/work/ui-orders/ui-orders/node_modules/@testing-library/dom/dist/wait-for.js:118:16)
    at Timeout.task [as _onTimeout] (/home/runner/work/ui-orders/ui-orders/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)