Skip to content

Convert the page tests outside the page store to TypeScript #300

Closed

Description

@jtklein-agents

Parent

#295

What to build

The eight page tests outside the page store are TypeScript. The tests that render JSX go from .jsx to .tsx; the rest from .js to .ts.

Files (from master at 2044cbc; check the list against the tree before starting):

Under src/app/ and src/app/components/: App, bootstrap, ErrorDialog, droppedFile, paths, promisedComputed, report, unhandledError.

Typing rules: mocks are plain vi.fn(), with a type argument only where a test reads the mock's calls or results and tsc asks for it. A partial store stand-in is cast where it is used; no shared fixture builders. No production source changes: if a typed test exposes a wrong production type, report it for its own ticket.

Acceptance criteria

  • Commit one is a pure rename (git mv, R100 for every file). Commit two adds the types. yarn react-test passes after each.
  • No file in this ticket assigns to window.rendererBridge: each uses installBridge or stubBridge. A test that stubs a method the renderer bridge does not have fails the typecheck.
  • yarn react-test still fails on an empty page paint.
  • The converted files have zero diagnostics under --noImplicitAny, and nothing is added to the typecheck baseline.
  • No @ts-nocheck and no @ts-ignore. @ts-expect-error appears only with a one-line reason, where a test passes a wrong type on purpose to exercise a runtime guard.
  • The pull request states the test count per file before and after, and they are equal.
  • yarn lint, yarn typecheck:baseline and yarn react-test pass.

Activity

  1. added
    ready-for-agent
    on Nov 22, 2026
  2. added a commit that references this issue on Nov 22, 2026
  3. jtklein-agents commented on Nov 22, 2026

    @jtklein-agents
    OwnerAuthor

    Merged into the spec feature branch in #312.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions