beads/internal/compact
beads/crew/jane 5d813290a1 fix(tests): extract initConfigForTest helper to prevent config state pollution
Tests using config.Initialize() pick up the real .beads/config.yaml
(e.g., sync.mode=dolt-native) which leaks into JSONL export tests.
Extract initConfigForTest(t) with t.Cleanup(config.ResetForTesting)
to isolate test config state. Also fix Result -> BatchResult type
rename in compactor_unit_test.go.

Fixes 17 pre-existing test failures caused by config bleed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:31:32 -08:00
..
compactor.go refactor(rpc): fix leaky abstraction - remove direct sqlite imports (bd-oslm) 2026-01-26 20:28:27 -08:00
compactor_test.go Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
compactor_unit_test.go fix(tests): extract initConfigForTest helper to prevent config state pollution 2026-01-31 16:31:32 -08:00
git.go feat(context): centralize RepoContext API for git operations (#1102) 2026-01-15 07:55:08 -08:00
git_test.go test: expand routing and compact coverage 2025-12-29 14:18:33 -08:00
haiku.go bd sync: 2025-12-23 23:38:57 2025-12-24 00:06:41 -08:00
haiku_test.go test: expand compact and ui coverage 2025-12-29 16:01:11 -08:00