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

wmzy / fetch-fun / 34120762737
97%

Build:
DEFAULT BRANCH: main
Ran 07 Sep 2026 12:14PM UTC
Jobs 1
Files 10
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

07 Sep 2026 12:13PM UTC coverage: 96.565% (+0.03%) from 96.531%
34120762737

push

github

wmzy
feat: validate 支持工厂重载 + Options.context 业务数据槽——validate(o, factory) 接受 (client) => schema,工厂携带合并后 client 延迟求值;新增 context 受管选项(toFetchParams 剥离、不进 RequestInit、不触发 dev unknown-option 警告),MapErrorContext.context 对所有错误类型携带该槽位

src/config.ts: validate 增加工厂重载,schema 校验在 validateData 中执行;src/fetch.ts: LIBRARY_OPTION_KEYS 加 context、toFetchParams 解构剥离、fetchData 把 o.context 写进 mapError ctx(HTTPError 与非 HTTPError 两路都带);src/types.ts: Options.context + MapErrorContext.context 及 JSDoc。docs: README 对比表/工厂章节/mapError 说明、MIGRATION ky 映射行、docs/recipes 动态 schema 配方。test: context 剥离无警告、工厂挂载与 fetchData 类型收敛(expectTypeOf 钉住 client 上下文类型)、mapError 两路 ctx.context 为同一引用、工厂逐请求求值(mockImplementation 新 Response,避开 data 中间件按 Response 实例的缓存)、链尾附加 context 可见、工厂返回非 schema 抛 TypeError、工厂 schema 失败抛 ValidationError

401 of 426 branches covered (94.13%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 2 files covered. (100.0%)

583 of 593 relevant lines covered (98.31%)

42.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34120762737.1 07 Sep 2026 12:14PM UTC 10
96.57
GitHub Action Run
Source Files on build 34120762737
  • Tree
  • List 10
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34120762737
  • a41649e7 on github
  • Prev Build on main (#34009271103)
  • Next Build on main (#34123432152)
  • Delete
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