(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestGetPrompt_ChiefExclusion(t *testing.T) { |
| 64 | prompt := GetPrompt("/path/progress.md", `{"id":"US-001"}`, "US-001", "Test Story") |
| 65 | |
| 66 | // The prompt must instruct Claude to never stage or commit .chief/ files |
| 67 | if !strings.Contains(prompt, ".chief/") { |
| 68 | t.Error("Expected prompt to contain .chief/ exclusion instruction") |
| 69 | } |
| 70 | if !strings.Contains(prompt, "NEVER stage or commit") { |
| 71 | t.Error("Expected prompt to explicitly say NEVER stage or commit .chief/ files") |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | func TestGetInitPrompt(t *testing.T) { |
| 76 | prdDir := "/path/to/.chief/prds/main" |
nothing calls this directly
no test coverage detected