[test] Cover frontend non-JSON API errors
Labels: testing, frontend, points: 150 File/location: frontend/src/lib/api/_shared.ts
Description: HTML, empty, and malformed error responses lack client contract tests.
Acceptance Criteria:
- [ ] Add deterministic tests for the documented success and failure paths, including boundary inputs and dependency failures.
- [ ] Run the new tests in the corresponding CI suite and assert the public behavior and error contract.
Notes: This is a focused regression gap for the cited module; it was not covered by the existing test files reviewed during the sweep.
@Felamsy has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi Maintainer, I’d love to take this issue on. I’ve gone through the requirements and understand what’s needed, and I’m confident I can deliver a clean, reliable solution that fits naturally into the existing codebase.
I’m ready to take ownership and give this the attention it deserves. I’d appreciate the opportunity to contribute.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Felamsy to this issue.
@Detayo07 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Please assign, I like tests.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Detayo07 to this issue.
@Sirbeejay16 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi Maintainer, I will get this done in 20 minutes, let's get this done
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Sirbeejay16 to this issue.
@cindybby18 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello Maintainer, I’m available and willing to work on this issue. I will carefully review the requirements, follow the contribution guidelines, and do my best to provide a quality solution. Thank you for considering my request
ℹ️ Repo Maintainers: To accept this application, review their application or assign @cindybby18 to this issue.
@samuelelijah585 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello, I've reviewed the issue and its acceptance criteria, and I'm confident I can deliver a solution that meets the requirements. I'd appreciate it if you could assign this issue to me. Thank you!
ℹ️ Repo Maintainers: To accept this application, review their application or assign @samuelelijah585 to this issue.
@Micheal1605 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
I can solve this issue if I wan assign to it
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Micheal1605 to this issue.
@Killerjunior has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi maintainer, I have read and understood the issue requirements and checked the necessary documentation. I’m confident I can work on this task effectively and deliver a proper solution.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Killerjunior to this issue.
@Ecruise-hub has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
I'd like to add regression tests for frontend/src/lib/api/_shared.ts covering non-JSON API error responses, including HTML, empty bodies, and malformed JSON. I'll also test documented success and failure paths, boundary inputs, and dependency failures, ensuring the public error contract is consistent and the new tests run in the relevant CI suite.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Ecruise-hub to this issue.
@OlayiwolaSherrifSalawu has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
I would like to work on this issues
ℹ️ Repo Maintainers: To accept this application, review their application or assign @OlayiwolaSherrifSalawu to this issue.
Congratulations, @OlayiwolaSherrifSalawu! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @OlayiwolaSherrifSalawu: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been marked as completed by a Drips Wave moderator for @OlayiwolaSherrifSalawu as part of the Stellar Wave Program's 10th Wave 🥳
Moderator's reason: [Auto-assessed] PR #1818 was successfully merged by the maintainers, addressing Issue #1770 by adding comprehensive unit tests for non-JSON API error responses in frontend/src/lib/api/_shared.test.ts.
😎 @OlayiwolaSherrifSalawu: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
ℹ️ Note: This issue was marked complete via moderation. Points were issued even though the GitHub issue remains open.