mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #30] [MERGED] chore: add vitest config so coverage measures hand-written code #40
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/30
Author: @robinjhuang
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @wei-hai
Base:
main← Head:chore/vitest-coverage-config📝 Commits (1)
29552a1chore: add vitest config so coverage measures hand-written code📊 Changes
1 file changed (+23 additions, -0 deletions)
View changed files
➕
vitest.config.ts(+23 -0)📄 Description
test:coverageran with no config at all, so openapi-ts output (types.gen.ts,zod.gen.ts) and the build-generatedversion.tswere counted at 100% — inflating the total and hiding real coverage of the SDK. Those are verified by the spec-drift gate rather than by tests, so they're excluded. Coverage also only saw files a test happened to import, meaning a module with no test at all was invisible instead of showing as 0%.Net effect: a per-file report over the 17 hand-written modules at 93.48% statements, instead of a directory-level 93.04% diluted by generated code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.