[PR #301] [MERGED] fix: resolve test failures by adding missing zod-openapi import #9581

Closed
opened 2026-02-16 18:13:48 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/301
Author: @monotykamary
Created: 6/21/2025
Status: Merged
Merged: 6/22/2025
Merged by: @thdxr

Base: devHead: fix/test-failures


📝 Commits (1)

  • 1d984a4 fix: resolve test failures by adding missing zod-openapi import and updating test expectations

📊 Changes

2 files changed (+3 additions, -2 deletions)

View changed files

📝 packages/opencode/src/app/app.ts (+1 -0)
📝 packages/opencode/test/tool/tool.test.ts (+2 -2)

📄 Description

Summary

• Fix critical test failures by adding missing zod-openapi/extend import that was causing runtime errors
• Update test expectations to match current project structure and file counts in monorepo environment

Test plan

  • Run bun test to verify all tests pass
  • Confirm zod-openapi import resolves runtime error in app.ts
  • Verify glob test works with correct node_modules path for monorepo
  • Check JSON file count matches actual files in directory

🤖 Generated with opencode


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/301 **Author:** [@monotykamary](https://github.com/monotykamary) **Created:** 6/21/2025 **Status:** ✅ Merged **Merged:** 6/22/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `fix/test-failures` --- ### 📝 Commits (1) - [`1d984a4`](https://github.com/anomalyco/opencode/commit/1d984a40cefd61cadaf612ca30cc81f7cfccefe5) fix: resolve test failures by adding missing zod-openapi import and updating test expectations ### 📊 Changes **2 files changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/app/app.ts` (+1 -0) 📝 `packages/opencode/test/tool/tool.test.ts` (+2 -2) </details> ### 📄 Description ## Summary • Fix critical test failures by adding missing zod-openapi/extend import that was causing runtime errors • Update test expectations to match current project structure and file counts in monorepo environment ## Test plan - [x] Run `bun test` to verify all tests pass - [x] Confirm zod-openapi import resolves runtime error in app.ts - [x] Verify glob test works with correct node_modules path for monorepo - [x] Check JSON file count matches actual files in directory 🤖 Generated with [opencode](https://opencode.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:48 -05:00
yindo closed this issue 2026-02-16 18:13:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9581