Skip to content

test: improve code quality and coverage - #156

Merged
chenrui333 merged 1 commit into
masterfrom
test/improve-coverage-and-quality
Jul 13, 2026
Merged

test: improve code quality and coverage#156
chenrui333 merged 1 commit into
masterfrom
test/improve-coverage-and-quality

Conversation

@chenrui333

@chenrui333 chenrui333 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • include every production TypeScript file in coverage reporting
  • add behavioral coverage for the action entry point and GitHub API wrappers
  • type-check tests and replace unsafe test doubles
  • narrow internal types and remove confirmed dead state
  • enforce stable coverage thresholds

Coverage

Metric Before After Threshold
Statements 89.03% 97.79% 95%
Branches 84.34% 93.64% 90%
Functions 91.66% 96.87% 95%
Lines 88.59% 97.71% 95%

The before value uses explicit src/**/*.ts coverage so unloaded production
files are included.

Runtime impact

No intended user-visible behavior change. Internal changes improve typing,
testability, and safe reporting of non-Error rejections. dist/index.js was
regenerated from the updated source.

Scope

This PR intentionally excludes dependency upgrades and unrelated feature work.

Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333
chenrui333 marked this pull request as ready for review July 13, 2026 01:40
@chenrui333
chenrui333 merged commit ff8cf05 into master Jul 13, 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.

1 participant