Skip to content

test: cover downshift core state transitions - #22

Merged
boadij merged 2 commits into
mainfrom
test/downshift-core-state-transitions
Jul 9, 2026
Merged

test: cover downshift core state transitions#22
boadij merged 2 commits into
mainfrom
test/downshift-core-state-transitions

Conversation

@boadij

@boadij boadij commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add focused regression coverage for the Downshift core state machine.
  • Cover threshold evaluation, state restoration, interrupted handoffs, downshift paths, handoff completion, continuation, and compaction upshifts.
  • Simplify repeated requested/active handoff checks with a small local helper.

Verification

  • npm run typecheck
  • npm test
  • npm run check

All checks pass with 33 tests passing.

boadij added 2 commits July 10, 2026 01:20
Add regression coverage for threshold evaluation, restored session state, handoff lifecycle, and compaction upshifts. Verify paused, disabled, below-threshold, and direct-switch paths without introducing runtime mocks.
Centralize the requested and active handoff check used by manual and automatic downshift paths while preserving their control flow.
@boadij
boadij merged commit 5e9c1d4 into main Jul 9, 2026
1 check 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.

1 participant