• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

skmtc / skmtc-generators / 29203954408
96%

Build:
DEFAULT BRANCH: main
Ran 12 Jul 2026 06:29PM UTC
Jobs 4
Files 85
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Jul 2026 06:28PM UTC coverage: 96.349%. Remained the same
29203954408

push

github

web-flow
fix(gen-tanstack-query-fetch-zod): pass variables into mutationFn (#11)

The generated mutation hook's `mutationFn` was emitted as `async () => {…}`
with no parameters, yet its body references `body` (and path params via
the URL template). React Query passes the mutation variables to
`mutationFn` at call time, so the function must declare that parameter —
unlike the query hooks, where the enclosing hook destructures the args and
the `queryFn` closes over them. The already-constructed `this.parameter`
(a destructured, typed FunctionParameter) was never emitted into the
signature, so every generated mutation hook failed to compile with
TS2304: Cannot find name 'body'.

Emit `this.parameter` into the arrow signature, mirroring how
QueryEndpoint emits `this.queryFn.parameter` for the query hooks.

Verified end-to-end via core `toArtifacts` against a petstore doc:
- body only  → `async ({body}: UseCreateApiPetArgs) => {…}`
- body+path  → `async ({petId, body}: UseCreateApiPetPetIdArgs) => {…}`
Extracted output type-checks with no TS2304. Version bumped 0.2.4 -> 0.2.5
so the cascade republishes.

362 of 387 branches covered (93.54%)

Branch coverage included in aggregate %.

2303 of 2379 relevant lines covered (96.81%)

24.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 gen-arktype - 29203954408.1 12 Jul 2026 06:29PM UTC 19
93.62
GitHub Action Run
2 gen-valibot - 29203954408.2 12 Jul 2026 06:29PM UTC 21
96.09
GitHub Action Run
3 gen-typescript - 29203954408.3 12 Jul 2026 06:29PM UTC 24
97.75
GitHub Action Run
4 gen-zod - 29203954408.4 12 Jul 2026 06:29PM UTC 21
97.54
GitHub Action Run
Source Files on build 29203954408
  • Tree
  • List 85
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29203954408
  • a838591b on github
  • Prev Build on main (#29203286353)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc