Skip to content

ci: Throwaway, prove pr-checks on Node 22 - #1

Closed
nigelgwork wants to merge 2 commits into
mainfrom
ci-proof-node22
Closed

nigelgwork wants to merge 2 commits into
mainfrom
ci-proof-node22

Conversation

@nigelgwork

Copy link
Copy Markdown
Contributor

Throwaway PR to run pr-checks on Node 22 after the 25/11 dependency upgrade. Closed unmerged, branch deleted.

🤖 Generated with Claude Code

@nigelgwork nigelgwork changed the title ci: throwaway — prove pr-checks on Node 22 ci: Throwaway, prove pr-checks on Node 22 Nov 25, 2026
The pr-checks "Comment Test Coverage" job runs `npm run test:coverage`,
which failed because web-ui had no test files at all.

Adds 36 tests across 10 files, driven by a routed fetch mock whose
payloads are taken from the gateway handlers (MonitoringHandlers,
ExecutionHandlers, ScriptAndPackageHandlers, Python3LogsHandler,
Python3MetricsCollector):

- App: renders the dashboard, shows the login prompt on 401, and
  navigates to every sidebar view.
- Dashboard, Scripts, Python Versions, Packages, Diagnostics and IDE:
  heading and content with mocked data, empty and 500/unreachable
  states, and key interactions (create script, install version/package,
  pool resize validation, log level filter, run code via /exec).
- api.ts, authCheck.ts and useGatewayFetch: session creation, Bearer and
  X-CSRF-Token headers, {data} unwrapping, HTTP and login-redirect errors.

The existing setup file now imports '@testing-library/jest-dom/vitest'
(the camera-driver pattern) so the matchers are typed for tsc.

No product code, versions or build files changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size/L and removed size/XS labels Nov 25, 2026
nigelgwork added a commit that referenced this pull request Nov 25, 2026
…method test

36 tests from a cloud run (payloads taken from the gateway route handlers) so the
pr-checks coverage job has something to run; it passed on Node 22 in GitHub
Actions on PR #1. Adds a test that Delete uses POST, which fails on the
pre-4.6.6 DELETE call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nigelgwork nigelgwork closed this Nov 25, 2026
@nigelgwork
nigelgwork deleted the ci-proof-node22 branch November 25, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants