MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestMigrateFromJSON_NoMdFile

Function TestMigrateFromJSON_NoMdFile

internal/prd/migrate_test.go:141–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

139}
140
141func TestMigrateFromJSON_NoMdFile(t *testing.T) {
142 tmpDir := t.TempDir()
143
144 jsonContent := `{"project": "Test", "userStories": [{"id": "US-001", "passes": true, "priority": 1}]}`
145 if err := os.WriteFile(filepath.Join(tmpDir, "prd.json"), []byte(jsonContent), 0644); err != nil {
146 t.Fatalf("failed to write: %v", err)
147 }
148
149 err := MigrateFromJSON(tmpDir)
150 if err == nil {
151 t.Error("expected error when prd.md doesn't exist")
152 }
153}

Callers

nothing calls this directly

Calls 1

MigrateFromJSONFunction · 0.85

Tested by

no test coverage detected