Skip to content

test: remove non-null assertions and any cast in react hook tests - #60

Draft
eli7pm wants to merge 1 commit into
runwayml:mainfrom
eli7pm:test/react-test-lint-warnings
Draft

eli7pm wants to merge 1 commit into
runwayml:mainfrom
eli7pm:test/react-test-lint-warnings

Conversation

@eli7pm

@eli7pm eli7pm commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

Resolves the biome lint warnings in the React hook tests. Test files only, with no runtime changes.

  • useCredentials.test.ts
    • Removed an unnecessary as any. The mocked response already matches SessionKeyResponse.
    • Replaced consumeCall!.url with consumeCall?.url. The toBeDefined() assertion just before it still guards it.
  • usePageActions.test.ts
    • Added a local required() helper that fails with a clear message when an element is missing, replacing three ! assertions.

Verification

  • biome lint reports no warnings in the two changed files.
  • React typecheck passes; all 23 React tests pass.

Related: formatting and import sorting in #59; the core page-action test helper in #58.

@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

@eli7pm is attempting to deploy a commit to the Runway Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant