Skip to content

Add integration and drift-detection tests #142

Description

@imnasnainaec

Current tests cover parsers, components, hooks, and utils well (~45 files), but there is no test that goes USJ input → extractBookFromUsjtokenizeBook → rendered segments with analyses joined, and no test of what happens to existing links when the baseline changes (hash change, token shift, stale flipping). Add:

  • One integration test with a small real USJ fixture, a seeded TextAnalysis, and assertions on rendered glosses/phrases.
  • Drift tests: same fixture with an edited verse — assert snapshot mismatch detection and (once Decide the token/segment identity re-anchoring strategy #136 lands) re-anchoring behavior.
  • A cross-segment phrase edge-case test (model permits it; UI disables it — pin the current behavior).

Size: S–M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions