Skip to content

Cover the substitution options on MobX 5 - #178

Merged
jtklein-agents merged 1 commit into
spec/118-page-store-mobx-7from
134-cover-the-substitution-options-on-mobx-5
Nov 15, 2026
Merged

jtklein-agents merged 1 commit into
spec/118-page-store-mobx-7from
134-cover-the-substitution-options-on-mobx-5

Conversation

@jtklein-agents

@jtklein-agents jtklein-agents commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #134

Summary

 src/app/store/
 ├── RunOptions.js                # unchanged
+├── substitutionOptions.test.js  # 15 tests: matrix, rate, invariant sites, ascertainment

Each computed of SubstitutionMatrix, SubstitutionRate, SubstitutionI and SubstitutionAscertainment is asserted; an autorun records its values while the run's alignments, dataType, hasInvariantSites, binary and option values change. The bridge stub lives in the test file. No store source changed.

Evidence

  • Before: no test covered these four classes.
    After: jest → 47 suites, 163 tests pass (15 new).
it('forces GAMMA unless the matrix is GTR')
  rate.setValue('CAT'); matrix.setValue('K80')
  autorun saw cmdValue: GAMMA -> CAT -> GAMMA

typecheck:baseline fails locally on the spec branch because the jest-types commit (#168) is on master only; none of the errors are in the new file.

Merge Danger

Door: two-way

Blast Radius: tests only

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jtklein-agents
jtklein-agents merged commit e349905 into spec/118-page-store-mobx-7 Nov 15, 2026
8 checks passed
@jtklein-agents
jtklein-agents deleted the 134-cover-the-substitution-options-on-mobx-5 branch November 15, 2026 11:45
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