Skip to content

[Refactor] Roll out stream helpers to Requesty spec - #1089

Merged
edelauna merged 1 commit into
mainfrom
refactor/provider-stream-test-utils-06q4nypl2c73c
Aug 1, 2026
Merged

[Refactor] Roll out stream helpers to Requesty spec#1089
edelauna merged 1 commit into
mainfrom
refactor/provider-stream-test-utils-06q4nypl2c73c

Conversation

@zoomote

@zoomote zoomote Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Created by Roomote. Follow up by mentioning @roomote, in the web UI, or in Discord.

What changed

  • Added src/test-utils/__tests__/stream.spec.ts to cover ordered collection, empty streams, and error propagation for the shared stream helpers.
  • Refactored src/api/providers/__tests__/requesty.spec.ts to replace inline async-iterator mock streams with asyncStreamFrom and pure collect-then-assert loops with collectStream.
  • Removed the stale requesty.spec.ts ESLint suppressions entry after its explicit-any suppressions dropped to zero.

Why this change was made

This continues the approved test-utils rollout now that the initial async-stream helper pilot has merged. It broadens the pattern to another provider spec while keeping partial-consumption generator tests inline where stepwise control is the point.

Impact

No user-facing behavior change. The shared helper is now directly tested, another provider spec is easier to maintain, and targeted tests, src lint/typecheck, and the full Zoo-Code test suite passed.

Related PRs

@zoomote

zoomote Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

No code issues found. See task

Reviewed 3d1b00f

@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@edelauna
edelauna marked this pull request as ready for review August 1, 2026 13:42
@edelauna
edelauna enabled auto-merge August 1, 2026 13:43
@edelauna
edelauna added this pull request to the merge queue Aug 1, 2026
Merged via the queue into main with commit b47b19a Aug 1, 2026
24 checks passed
@edelauna
edelauna deleted the refactor/provider-stream-test-utils-06q4nypl2c73c branch August 1, 2026 13:57
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.

2 participants