sillsdev / sillsdev/interlinearizer-extension
Add integration and drift-detection tests
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 → extractBookFromUsj → tokenizeBook → 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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