From 2a7dfac50e4bd9a4e977dc162ff04eb52b59bd6a Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 14 Feb 2026 22:06:46 +0900 Subject: [PATCH] test(skill-tool): restore bun mocks after tests --- src/tools/skill/tools.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/skill/tools.test.ts b/src/tools/skill/tools.test.ts index e5ce213e9..52d69bb5e 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,