From a040eacf836ae6c4e281a3bae87354609e39dbdd Mon Sep 17 00:00:00 2001 From: Willie Date: Wed, 30 Sep 2026 04:01:05 +0800 Subject: [PATCH] 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. --- tests/integration/sync_extras_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/sync_extras_test.go b/tests/integration/sync_extras_test.go index 828a4ab3d..5bb14a9f9 100644 --- a/tests/integration/sync_extras_test.go +++ b/tests/integration/sync_extras_test.go @@ -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) }