Skip to content

feat(middleware): add comprehensive tests and docs for interceptor pipeline - #433

Merged
Lakes41 merged 2 commits into
Adamantine-guild:mainfrom
mayborn005:feature/middleware-tests-docs
Jul 29, 2026
Merged

feat(middleware): add comprehensive tests and docs for interceptor pipeline#433
Lakes41 merged 2 commits into
Adamantine-guild:mainfrom
mayborn005:feature/middleware-tests-docs

Conversation

@mayborn005

@mayborn005 mayborn005 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds comprehensive middleware tests and architecture docs, and fixes associated CI build and test issues.

Changes

  • Middleware tests: 30 tests covering the full interceptor pipeline lifecycle (request, response, error propagation)
  • Middleware docs: Architecture documentation in docs/architecture.md explaining the middleware pattern
  • HTTP client fixes: Proper error propagation in response pipeline, middleware body/header mutation support
  • Various build and test fixes for ethers v6 compatibility, lazy fetch transport, signal-aware deduplication

Closes

Closes #308, #304, #270

@mayborn005 mayborn005 changed the title feat(middleware): add comprehensive tests and docs for interceptor pipeline (#304) fix: resolve CI build errors and test failures for middleware pipeline Jul 29, 2026
@Lakes41

Lakes41 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has conflicts do endeavour to resolve them and make sure it passes the tests @mayborn005

…peline (Adamantine-guild#304)

- Add 30 middleware tests covering header injection, short-circuit,
  layer interaction, retry behavior, error handling, and edge cases
- Fix body mutation carry-forward and response pipeline error swallowing
  in httpClient.ts
- Document middleware pipeline architecture in docs/architecture.md
@mayborn005
mayborn005 force-pushed the feature/middleware-tests-docs branch from d8e8694 to ea23e7e Compare July 29, 2026 11:45
@mayborn005 mayborn005 changed the title fix: resolve CI build errors and test failures for middleware pipeline feat(middleware): add comprehensive tests and docs for interceptor pipeline Jul 29, 2026
@Lakes41
Lakes41 merged commit 7caa236 into Adamantine-guild:main Jul 29, 2026
4 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.

Design a property-based test suite for cache key construction and TTL behavior

2 participants