mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
test(sync): compare the resolved extras path on macOS
TestSyncExtras_ProjectJSONReportsResolvedPath failed on the macOS CI runner: the CLI reports the real target path, and the macOS temp dir sits behind the /var -> /private/var symlink, so it no longer matched the unresolved path the test built. Resolve the expected path the same way, as json_output_test.go already does.
This commit is contained in:
@@ -1025,7 +1025,8 @@ extras:
|
||||
result := sb.RunCLIInDir(projectRoot, "sync", "extras", "-p", "--json")
|
||||
result.AssertSuccess(t)
|
||||
|
||||
want := filepath.Join(projectRoot, ".claude", "rules")
|
||||
// The CLI reports the real path; on macOS the temp dir sits behind /var -> /private/var.
|
||||
want, _ := filepath.EvalSymlinks(filepath.Join(projectRoot, ".claude", "rules"))
|
||||
if got := syncExtrasJSONTargets(t, result.Stdout)[0]["path"]; got != want {
|
||||
t.Errorf("path = %v, want %q", got, want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user