Skip to content

Add qsonTools tests before utility refactors - #206

Merged
sd merged 1 commit into
ham2k:mainfrom
rwjblue:rwjblue/add-qson-tools-tests
May 8, 2026
Merged

Add qsonTools tests before utility refactors#206
sd merged 1 commit into
ham2k:mainfrom
rwjblue:rwjblue/add-qson-tools-tests

Conversation

@rwjblue

@rwjblue rwjblue commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a focused test suite for qsonTools, covering both filterQSOsWithSectionRefs and filterNearDupes.
  • Locks in behavior around section transitions (start/break), malformed/valid section refs, and default event/deleted filtering.
  • Verifies near-dupe matching rules for call, timestamp ordering, UUID exclusion, section constraints, and optional custom filters.

Why now

I have refactors in flight in #204, and I want these tests in first so we can move faster there without accidentally changing existing utility behavior.

Test plan

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

Stack

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

@sd sd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a couple of minor additions

Comment thread src/tools/qsonTools.spec.js
Comment thread src/tools/qsonTools.spec.js
Comment thread src/tools/qsonTools.spec.js Outdated
@rwjblue
rwjblue force-pushed the rwjblue/add-qson-tools-tests branch 3 times, most recently from 88335ba to c62eac9 Compare March 1, 2026 15:55
@rwjblue

rwjblue commented Mar 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review, updated!

@rwjblue
rwjblue force-pushed the rwjblue/add-qson-tools-tests branch 2 times, most recently from cd79e30 to 395f10e 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.

These tests lock in current qsonTools behavior before upcoming refactors
to reduce the risk of accidental regressions.

Coverage includes section context transitions via start/break events,
default handling of event/deleted records, and near-dupe matching rules
for call, timestamp ordering, UUID exclusion, and section constraints.
@rwjblue
rwjblue force-pushed the rwjblue/add-qson-tools-tests branch from 395f10e to ff32a30 Compare March 25, 2026 19:05
@sd
sd merged commit 37b590c 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