From b7b5737f9c6617b0b62fc6f5f80e7933c347bb2d Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Sat, 17 Jan 2026 17:08:55 +0900 Subject: [PATCH] fix(test): add global preload for session state reset --- bunfig.toml | 2 ++ test-setup.ts | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 bunfig.toml create mode 100644 test-setup.ts diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 000000000..9e75dd230 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[test] +preload = ["./test-setup.ts"] diff --git a/test-setup.ts b/test-setup.ts new file mode 100644 index 000000000..5ac63e4e6 --- /dev/null +++ b/test-setup.ts @@ -0,0 +1,6 @@ +import { beforeEach } from "bun:test" +import { _resetForTesting } from "./src/features/claude-code-session-state/state" + +beforeEach(() => { + _resetForTesting() +})