Skip to content

Parity baseline and parity test for page store annotations #140

Closed

Description

@jtklein-agents

Parent

#118

What to build

A reviewer does not have to check some 315 members by eye: a temporary source-scan test fails when a member that is observable, computed or an action today loses its annotation during the conversion, or gains one.

Cut the worktree from the spec's feature branch spec/118-page-store-mobx-7 and open the pull request into it.

Acceptance criteria

  • A baseline, generated from today's decorators, records every observable, computed and action member of every page store class.
  • The baseline is keyed by class name, not file path, with one member per line, so that moving a class between modules does not change it.
  • A jest test scans every module in the page store folder and fails when a baseline member is missing from its class's annotations, or an annotated member is missing from the baseline.
  • The test reads both forms: decorators and makeObservable annotation maps, including override.
  • The test does not check that an annotation kind is right for a subclass; a wrong kind throws at construction.
  • The test passes on the current tree.
  • The test and baseline are marked temporary; a later ticket deletes them.
  • Jest, lint, the typecheck baseline check and the end-to-end suite pass.

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