Skip to content

Commit 68d3663

Browse files
test(opencode-go): use the shared clearAllMocks helper
1 parent b93d3b1 commit 68d3663

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/api/providers/__tests__/opencode-go.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ describe("OpencodeGoHandler", () => {
15221522
}
15231523

15241524
beforeEach(() => {
1525-
vitest.clearAllMocks()
1525+
clearAllMocks()
15261526
})
15271527

15281528
it("completePrompt returns text for OpenAI path", async () => {
@@ -2616,7 +2616,7 @@ describe("OpencodeGoHandler", () => {
26162616
] as const)(
26172617
"completePrompt pins the caller signal and rejects with AbortError for the %s format",
26182618
async (_format, options, requestMock) => {
2619-
vitest.clearAllMocks()
2619+
clearAllMocks()
26202620
const controller = new AbortController()
26212621
const pending = new Promise<never>((_resolve, reject) => {
26222622
controller.signal.addEventListener(

0 commit comments

Comments
 (0)