Skip to content

Add qsonToADIF baseline tests for segment context handling - #207

Merged
sd merged 1 commit into
ham2k:mainfrom
rwjblue:rwjblue/add-qsontoadif-segment-context-tests
May 8, 2026
Merged

Add qsonToADIF baseline tests for segment context handling#207
sd merged 1 commit into
ham2k:mainfrom
rwjblue:rwjblue/add-qsontoadif-segment-context-tests

Conversation

@rwjblue

@rwjblue rwjblue commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

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
Comment thread src/tools/qsonToADIF.spec.js Outdated
@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

rwjblue commented Mar 1, 2026

Copy link
Copy Markdown
Contributor Author

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
@sd
sd merged commit 3205f6b into ham2k:main May 8, 2026
2 checks passed
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