feat(FR-2748): fully migrate test files from jest.* to vi.* and align TS globals #67
vitest.yml
on: pull_request
check-changes
9s
react-vitest
2m 35s
backend-ai-ui-vitest
2m 1s
root-vitest
1m 42s
Annotations
12 errors and 2 warnings
|
react-vitest
Error: ENOENT: no such file or directory, open '/home/runner/work/backend.ai-webui/backend.ai-webui/react/coverage/coverage-summary.json'
|
|
react-vitest
Failed to parse the json-summary at path "/home/runner/work/backend.ai-webui/backend.ai-webui/react/coverage/coverage-summary.json."
Make sure to run vitest before this action and to include the "json-summary" reporter.
Original Error:
Error: ENOENT: no such file or directory, open '/home/runner/work/backend.ai-webui/backend.ai-webui/react/coverage/coverage-summary.json'
at async open (node:internal/fs/promises:637:25)
at async readFile (node:internal/fs/promises:1269:14)
at async s2 (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:103:2128)
at async lw (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:103:2209)
at async Lle (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:191:570)
|
|
react-vitest
Process completed with exit code 1.
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary source > does not reference any URL-state APIs:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > errorFallback replaces the built-in card for every kind:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > skips token_login when the browser already holds a valid session:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > reports token-invalid when tokenLogin throws:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > reports server-unreachable when get_manager_version rejects:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > reports endpoint-unresolved when the resolver returns empty:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > reports missing-token when sToken prop is empty:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > dispatches backend-ai-connected exactly once on success:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
src/components/STokenLoginBoundary.test.tsx > STokenLoginBoundary > renders children after the login sequence succeeds:
react/src/components/STokenLoginBoundary.test.tsx#L103
TypeError: Cannot set properties of undefined (setting 'endpoint')
❯ setEndpoint src/components/STokenLoginBoundary.test.tsx:103:17
❯ src/components/STokenLoginBoundary.test.tsx:158:3
|
|
check-changes
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: dorny/paths-filter@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
root-vitest
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|