Skip to content

Commit 09b89fd

Browse files
monotykamaryopencode
andauthored
fix: resolve test failures by adding missing zod-openapi import (anomalyco#301)
Co-authored-by: opencode <noreply@opencode.ai>
1 parent 0e8c335 commit 09b89fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/opencode/src/app/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "zod-openapi/extend"
12
import { Log } from "../util/log"
23
import { Context } from "../util/context"
34
import { Filesystem } from "../util/filesystem"

packages/opencode/test/tool/tool.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("tool.glob", () => {
1414
await App.provide({ cwd: process.cwd() }, async () => {
1515
let result = await GlobTool.execute(
1616
{
17-
pattern: "./node_modules/**/*",
17+
pattern: "../../node_modules/**/*",
1818
path: undefined,
1919
},
2020
ctx,
@@ -33,7 +33,7 @@ describe("tool.glob", () => {
3333
)
3434
expect(result.metadata).toMatchObject({
3535
truncated: false,
36-
count: 2,
36+
count: 3,
3737
})
3838
})
3939
})

0 commit comments

Comments
 (0)