diff --git a/src/tools/skill/tools.test.ts b/src/tools/skill/tools.test.ts index e5ce213e..52d69bb5 100644 --- a/src/tools/skill/tools.test.ts +++ b/src/tools/skill/tools.test.ts @@ -1,4 +1,4 @@ -import { describe, it, expect, beforeEach, mock, spyOn } from "bun:test" +import { afterAll, beforeEach, describe, expect, it, mock, spyOn } from "bun:test" import type { ToolContext } from "@opencode-ai/plugin/tool" import * as fs from "node:fs" import { createSkillTool } from "./tools" @@ -21,6 +21,10 @@ Test skill body content` }, })) +afterAll(() => { + mock.restore() +}) + function createMockSkill(name: string, options: { agent?: string } = {}): LoadedSkill { return { name,