Skip to content

Add qsonToADIF baseline tests for segment context handling#207

Open
rwjblue wants to merge 1 commit intoham2k:mainfrom
rwjblue:rwjblue/add-qsontoadif-segment-context-tests
Open

Add qsonToADIF baseline tests for segment context handling#207
rwjblue wants to merge 1 commit intoham2k:mainfrom
rwjblue:rwjblue/add-qsontoadif-segment-context-tests

Conversation

@rwjblue
Copy link
Copy Markdown
Contributor

@rwjblue rwjblue commented Mar 1, 2026

Summary

  • Adds focused tests for qsonToADIF segment-context behavior before the section-context refactor lands.
  • Verifies combineSegmentRefs behavior for keeping original refs vs switching to segment refs.
  • Verifies deleted start/break events do not update active segment context.

Why now

This is intended as a guardrail for the refactors in #204. The goal is to ensure behavior is fully tested before/after refactoring so we can detect any breakage confidently.

Test plan

  • npm test -- --runInBand src/tools/qsonToADIF.spec.js

Dependencies

Stack

  1. Add qsonTools tests before utility refactors #206
  2. Add qsonToADIF baseline tests for segment context handling (this PR)
  3. Use section timeline context for roving map QSO origins #204

@rwjblue rwjblue marked this pull request as ready for review March 1, 2026 04:13
@rwjblue rwjblue force-pushed the rwjblue/add-qsontoadif-segment-context-tests branch 3 times, most recently from d30d144 to 514d7f9 Compare March 1, 2026 19:10
@rwjblue
Copy link
Copy Markdown
Contributor Author

rwjblue commented Mar 1, 2026

Rebased now that we have CI running jest tests, all green now.

These tests establish baseline coverage before the section-context
refactor so behavior changes in ADIF export are caught early.

Coverage verifies how start/break events update export context, how
combineSegmentRefs affects ref propagation, and that deleted segment
events do not change the active context used for later QSOs.
@rwjblue rwjblue force-pushed the rwjblue/add-qsontoadif-segment-context-tests branch from 514d7f9 to 5a35dfb Compare March 25, 2026 19:05
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.

2 participants