sillsdev / sillsdev/interlinearizer-extension

Add integration and drift-detection tests

Open
#142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2
Forks
0
Avg merge
1d 17h
Merged PRs (30d)
55

Description

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 #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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing tests around extractBookFromUsj, tokenizeBook, rendered segments, and TextAnalysis, then identify where a small real USJ fixture fits. Add integration assertions for glosses and phrases, drift assertions for edited verses and baseline changes, and a cross-segment phrase test that records the current model/UI behavior; account for the re-anchoring behavior expected after #136 lands.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.