(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func TestSkillInstallWritesVersionSidecar(t *testing.T) { |
| 19 | home := withTempHome(t) |
| 20 | withVersion(t, "v9.9.9") |
| 21 | |
| 22 | if rc := cmdSkill([]string{"install"}); rc != 0 { |
| 23 | t.Fatalf("install rc=%d", rc) |
| 24 | } |
| 25 | got, err := os.ReadFile(filepath.Join(home, ".claude", "skills", "flow", "VERSION")) |
| 26 | if err != nil { |
| 27 | t.Fatalf("read VERSION: %v", err) |
| 28 | } |
| 29 | if want := "v9.9.9\n"; string(got) != want { |
| 30 | t.Errorf("VERSION sidecar = %q, want %q", got, want) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func TestCmdInitWritesVersionSidecar(t *testing.T) { |
| 35 | initTempFlowRoot(t) |
nothing calls this directly
no test coverage detected