refactor: centralize resource slot type definitions and improve device metadata handling in /react
#6045
Annotations
1 error
deviceMetadata JSON Schema Validation > should include all known accelerator names and base resource names:
react/src/hooks/backendai.test.tsx#L14
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)
|