Skip to content

Add JSDoc type-checking and test coverage gating#8

Merged
ShiosOS merged 1 commit into
mainfrom
quality/typecheck-coverage
Jun 4, 2026
Merged

Add JSDoc type-checking and test coverage gating#8
ShiosOS merged 1 commit into
mainfrom
quality/typecheck-coverage

Conversation

@ShiosOS

@ShiosOS ShiosOS commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Raises the static-analysis and testing bar:

  • Type-checking: tsconfig.json + types/globals.d.ts + // @ts-check headers. tsc --checkJs runs strict and clean — JSDoc annotations/casts added where DOM types needed narrowing. New npm run typecheck.
  • Coverage: Vitest coverage via the Istanbul provider (pool-agnostic), scoped to the pure logic modules (reorder/checks/constants), gated at 90% statements/lines, 95% functions, 85% branches. New npm run coverage.
  • CI now runs typecheck and coverage; coverage/ is gitignored.

No runtime/behavior changes to the extension — types and JSDoc only.

🤖 Generated with Claude Code

- Add tsconfig.json + types/globals.d.ts and // @ts-check headers; tsc --checkJs runs clean in strict mode (JSDoc param/cast annotations added where the DOM types needed narrowing).
- Add Vitest coverage (Istanbul provider, pool-agnostic) scoped to the pure logic modules, with thresholds (90% statements/lines, 95% functions, 85% branches — branches lower because each UMD wrapper has a browser-only branch unreachable under Node).
- Wire `npm run typecheck` and `npm run coverage` into CI; ignore coverage/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ShiosOS
ShiosOS merged commit 148d2f9 into main Jun 4, 2026
3 checks passed
@ShiosOS
ShiosOS deleted the quality/typecheck-coverage branch June 4, 2026 05:26
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