fix(test): add global preload for session state reset
This commit is contained in:
parent
fa9bf4590c
commit
b7b5737f9c
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()
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user