test(HAI-026): complete Step 4 — add settings round-trip tests for worktreeInitCommand

This commit is contained in:
Dustin Byrne
2026-03-25 22:13:14 -04:00
parent a1380e8637
commit e1a165b9dc

View File

@@ -244,6 +244,21 @@ describe("TaskStore", () => {
});
});
// ── Settings tests ────────────────────────────────────────────────
describe("worktreeInitCommand setting", () => {
it("persists worktreeInitCommand and returns it via getSettings", async () => {
await store.updateSettings({ worktreeInitCommand: "pnpm install" });
const settings = await store.getSettings();
expect(settings.worktreeInitCommand).toBe("pnpm install");
});
it("default settings do not include worktreeInitCommand", async () => {
const settings = await store.getSettings();
expect(settings.worktreeInitCommand).toBeUndefined();
});
});
// ── Concurrent stress test ───────────────────────────────────────
describe("concurrent stress", () => {