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 }); }