diff --git a/src/hooks/prometheus-md-only/index.test.ts b/src/hooks/prometheus-md-only/index.test.ts index 2c99b6e51..54a839f9f 100644 --- a/src/hooks/prometheus-md-only/index.test.ts +++ b/src/hooks/prometheus-md-only/index.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, test, beforeEach, afterEach, mock } from "bun:test" +import { describe, expect, test, beforeEach, afterEach } from "bun:test" import { mkdirSync, rmSync, writeFileSync } from "node:fs" import { join } from "node:path" import { tmpdir } from "node:os" @@ -6,18 +6,8 @@ import { randomUUID } from "node:crypto" import { SYSTEM_DIRECTIVE_PREFIX } from "../../shared/system-directive" import { clearSessionAgent } from "../../features/claude-code-session-state" -const TEST_STORAGE_ROOT = join(tmpdir(), `prometheus-md-only-${randomUUID()}`) -const TEST_MESSAGE_STORAGE = join(TEST_STORAGE_ROOT, "message") -const TEST_PART_STORAGE = join(TEST_STORAGE_ROOT, "part") - -mock.module("../../features/hook-message-injector/constants", () => ({ - OPENCODE_STORAGE: TEST_STORAGE_ROOT, - MESSAGE_STORAGE: TEST_MESSAGE_STORAGE, - PART_STORAGE: TEST_PART_STORAGE, -})) - -const { createPrometheusMdOnlyHook } = await import("./index") -const { MESSAGE_STORAGE } = await import("../../features/hook-message-injector") +import { createPrometheusMdOnlyHook } from "./index" +import { MESSAGE_STORAGE } from "../../features/hook-message-injector" describe("prometheus-md-only", () => { const TEST_SESSION_ID = "test-session-prometheus" @@ -52,7 +42,6 @@ describe("prometheus-md-only", () => { // ignore } } - rmSync(TEST_STORAGE_ROOT, { recursive: true, force: true }) }) describe("agent name matching", () => {