Skip to content

Refactor: Remove all hard-coded resource slot names in `/react`

Sign in for the full log view
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Sep 4, 2024 in 0s

Test suite run failed

Failed tests: 1/85. Failed suites: 1/11.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● deviceMetadata JSON Schema Validation › should include all known accelerator names and base resource names

    expect(received).toBe(expected) // Object.is equality

    Expected: true
    Received: false

      26 |       console.error(validate.errors);
      27 |     }
    > 28 |     expect(valid).toBe(true);
         |                   ^
      29 |   });
      30 | });
      31 |

      at Object.<anonymous> (src/hooks/backendai.test.tsx:28:19)

Annotations

Check failure on line 14 in react/src/hooks/backendai.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

deviceMetadata JSON Schema Validation > should include all known accelerator names and base resource names

Error: expect(received).toBe(expected) // Object.is equality

Expected: true
Received: false
    at Object.<anonymous> (/home/runner/work/backend.ai-webui/backend.ai-webui/react/src/hooks/backendai.test.tsx:28:19)
    at Promise.then.completed (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:391:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/utils.js:316:10)
    at _callCircusTest (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:218:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:155:3)
    at _runTestsForDescribeBlock (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:66:9)
    at _runTestsForDescribeBlock (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:60:9)
    at run (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/run.js:25:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21)
    at jestAdapter (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19)
    at runTestInternal (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:389:16)
    at runTest (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/runTest.js:475:34)
    at Object.worker (/home/runner/work/backend.ai-webui/backend.ai-webui/react/node_modules/.pnpm/[email protected]/node_modules/jest-runner/build/testWorker.js:133:12)