From 81828db6ef3f2298982d68dc9db36ddf5f8c2872 Mon Sep 17 00:00:00 2001 From: beads/crew/dave Date: Thu, 15 Jan 2026 08:02:20 -0800 Subject: [PATCH] fix(test): remove pre-existing issues.jsonl in TestExportOnlySync setupGitRepo now creates an empty issues.jsonl for RepoContext, which triggers 'JSONL changed since import' validation in tests that set up their own .beads/ directory. Co-Authored-By: Claude Opus 4.5 --- cmd/bd/sync_modes_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/bd/sync_modes_test.go b/cmd/bd/sync_modes_test.go index ecb2b6b5..0b18a76e 100644 --- a/cmd/bd/sync_modes_test.go +++ b/cmd/bd/sync_modes_test.go @@ -681,6 +681,9 @@ func TestExportOnlySync(t *testing.T) { beadsDir := filepath.Join(tmpDir, ".beads") jsonlPath := filepath.Join(beadsDir, "issues.jsonl") + // Remove pre-existing issues.jsonl from setupGitRepo (we want a clean slate) + _ = os.Remove(jsonlPath) + // Setup: Create .beads directory if err := os.MkdirAll(beadsDir, 0755); err != nil { t.Fatalf("failed to create .beads dir: %v", err)