From 5bef3669e4debdd587d4da63e44960bfca757606 Mon Sep 17 00:00:00 2001 From: Andrei Hasna Date: Sat, 8 Aug 2026 04:43:54 +0300 Subject: [PATCH] Fix shell sync test database isolation Use an explicit temporary database path for the shell-profile regression so it remains hermetic when the managed API-routing environment is present. Agent: vitruvius --- src/lib/sync.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sync.test.ts b/src/lib/sync.test.ts index f626061..9ee1f10 100644 --- a/src/lib/sync.test.ts +++ b/src/lib/sync.test.ts @@ -112,7 +112,7 @@ describe("syncKnown shell source safety", () => { async function syncAndApplyBashProfile() { process.env["CONFIGS_HOME"] = tmpDir; - const db = getDatabase(); + const db = getDatabase(join(tmpDir, "instructions-test.db")); const store = new LocalConfigStore(db); const result = await syncKnown({ store, category: "shell" }); expect(result.added).toBe(1);