Skip to content
/ app-polo Public

Add qsonTools tests before utility refactors#206

Open
rwjblue wants to merge 1 commit intoham2k:mainfrom
rwjblue:rwjblue/add-qson-tools-tests
Open

Add qsonTools tests before utility refactors#206
rwjblue wants to merge 1 commit intoham2k:mainfrom
rwjblue:rwjblue/add-qson-tools-tests

Conversation

@rwjblue
Copy link
Contributor

@rwjblue rwjblue commented Mar 1, 2026

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

Copy link
Contributor

@sd sd left a comment

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

@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
Copy link
Contributor Author

rwjblue commented Mar 1, 2026

Thanks for the review, updated!

@rwjblue rwjblue force-pushed the rwjblue/add-qson-tools-tests branch from c62eac9 to cd79e30 Compare March 1, 2026 16:56
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 cd79e30 to 395f10e Compare March 1, 2026 19:10
@rwjblue
Copy link
Contributor Author

rwjblue commented Mar 1, 2026

Rebased now that we have CI running jest tests.

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