Skip to content

fix(tests): route the fetch mock cast through unknown to satisfy tsc - #109

Merged
nibzard merged 1 commit into
mainfrom
fix/agent-skills-test-fetch-mock-typecheck
Jul 31, 2026
Merged

fix(tests): route the fetch mock cast through unknown to satisfy tsc#109
nibzard merged 1 commit into
mainfrom
fix/agent-skills-test-fetch-mock-typecheck

Conversation

@nibzard

@nibzard nibzard commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

CI on main fails typecheck since #108: the fetch mock in tests/agent-skills-index.test.ts casts a bare function directly to typeof fetch, and Bun's fetch type also requires a preconnect property (TS2352). Routing the cast through unknown is the standard fix tsc itself suggests. Test behavior is unchanged.

Test plan

  • bun run typecheck: clean (previously failed on line 308)
  • bun test tests/agent-skills-index.test.ts: 32 pass, 0 fail
  • bun run check: clean

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 31, 2026 12:59pm

Request Review

@nibzard
nibzard merged commit ae1a928 into main Jul 31, 2026
3 checks passed
@nibzard
nibzard deleted the fix/agent-skills-test-fetch-mock-typecheck branch July 31, 2026 13:10
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