Skip to content

Fix raceAbort masking non-Error rejections, add coverage gate#76

Merged
shayc merged 4 commits into
mainfrom
fix/race-abort-reject-passthrough
Jul 6, 2026
Merged

Fix raceAbort masking non-Error rejections, add coverage gate#76
shayc merged 4 commits into
mainfrom
fix/race-abort-reject-passthrough

Conversation

@shayc

@shayc shayc commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix raceAbort coercing genuine (non-Error) promise rejections into AbortError, so a rejected non-Error value is no longer misreported as a cancellation
  • Add @vitest/coverage-v8 with per-metric thresholds (mirroring the open-board-format sibling package) and wire test:coverage into CI/release
  • Add missing tests for create*() factories and measureInput() that the new coverage gate surfaced as untested
  • Bump devDependencies (vitest, eslint, prettier, typescript-eslint, globals)

Test plan

  • npm run test:coverage passes with thresholds met
  • npm run typecheck
  • npm run lint

🤖 Generated with Claude Code

shayc and others added 4 commits July 6, 2026 22:20
The promise's own rejection reason was being coerced with toError,
which defaults non-Error reasons to AbortError. That's only correct
for abort reasons, not genuine rejections, so a thrown non-Error
value (e.g. a rejected string) was misreported as a cancellation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Wire vitest coverage-v8 with per-metric thresholds (mirroring the
open-board-format sibling package) into CI/release, and add missing
tests for the create*() factories and measureInput() that the new
coverage gate surfaced as untested.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@shayc shayc merged commit 5562b6a into main Jul 6, 2026
2 checks passed
@shayc shayc deleted the fix/race-abort-reject-passthrough branch July 6, 2026 21:21
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