fix(test): add global preload for session state reset
This commit is contained in:
2
bunfig.toml
Normal file
2
bunfig.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[test]
|
||||
preload = ["./test-setup.ts"]
|
||||
6
test-setup.ts
Normal file
6
test-setup.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { beforeEach } from "bun:test"
|
||||
import { _resetForTesting } from "./src/features/claude-code-session-state/state"
|
||||
|
||||
beforeEach(() => {
|
||||
_resetForTesting()
|
||||
})
|
||||
Reference in New Issue
Block a user