Skip to content

Gabriel#4

Merged
Gab-codes merged 6 commits into
mainfrom
gabriel
May 1, 2026
Merged

Gabriel#4
Gab-codes merged 6 commits into
mainfrom
gabriel

Conversation

@Gab-codes
Copy link
Copy Markdown
Owner

Summary

This PR introduces a complete testing, CI/CD, and reliability hardening layer for the vfetch HTTP client, transforming it from a functional wrapper around fetch into a production-grade, concurrency-safe HTTP client with Axios-like guarantees.

What was added

  1. Vitest Test Suite (Full Coverage Structure)
  • Introduced modular test architecture:
  • basic.test.ts
  • query.test.ts
  • headers.test.ts
  • error.test.ts
  • refresh.test.ts
  • concurrent.test.ts
  • json.test.ts
  • integration/full-flow.test.ts
  • Added deterministic test utilities for mocking fetch

Coverage Enforcement (Vitest + V8)

  • Enabled coverage reporting with V8
  • Established strict thresholds:
    ~ 85–90% statement coverage
    ~ 80%+ branch coverage
  • Identified and strengthened weak execution paths in:
    ~ retry logic
    ~ interceptor flow
    ~ error normalization
    ~ concurrency handling

@Gab-codes Gab-codes merged commit a15f64d into main May 1, 2026
3 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