Skip to content

Jest fails a test on a MobX action warning #147

Closed

Description

@jtklein-agents

Parent

#118

What to build

A contributor finds out before review when a test changes observable state outside an action: one global check in the jest setup fails any test that triggers a MobX action warning.

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

Acceptance criteria

  • The jest setup fails a test when MobX warns that observable state was changed outside an action during that test.
  • A test proves the check: a write outside an action fails, the same write inside runInAction passes.
  • The whole suite passes with the check on; a warning it surfaces is fixed by making the member an action or by runInAction, not by a configure call.
  • 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