From 64416fef381681e33fa10c4a139125c402ed7c84 Mon Sep 17 00:00:00 2001 From: Aaron Erickson Date: Wed, 22 Jul 2026 03:51:39 -0700 Subject: [PATCH] test(macos): accept canonical watcher paths Signed-off-by: Aaron Erickson --- .../uninstall/hermes-forward-watcher-installer.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/actions/uninstall/hermes-forward-watcher-installer.test.ts b/src/lib/actions/uninstall/hermes-forward-watcher-installer.test.ts index 9038bfb1540..c9435b4d07d 100644 --- a/src/lib/actions/uninstall/hermes-forward-watcher-installer.test.ts +++ b/src/lib/actions/uninstall/hermes-forward-watcher-installer.test.ts @@ -62,7 +62,9 @@ exec ${JSON.stringify(process.execPath)} "$@" ); expect(result.status, result.stderr).toBe(0); - expect(fs.readFileSync(watcherLog, "utf-8").trim()).toBe(openshell); + const watcherOpenshell = fs.readFileSync(watcherLog, "utf-8").trim(); + expect(path.isAbsolute(watcherOpenshell)).toBe(true); + expect(fs.realpathSync(watcherOpenshell)).toBe(fs.realpathSync(openshell)); } finally { fs.rmSync(tmp, { recursive: true, force: true }); }