test(daemon): make self-update paths platform-stable

This commit is contained in:
Mohamed Boudra
2026-06-26 13:25:17 +07:00
parent 444214cbe2
commit 98c0033f22
@@ -1,4 +1,3 @@
import path from "node:path";
import { describe, expect, test } from "vitest";
import {
DaemonSelfUpdateInProgressError,
@@ -18,11 +17,11 @@ interface TestLogger {
type Inspection = NpmGlobalPaseoInstall | Error;
type RuntimeCall = "inspect" | "installLatest";
const globalRoot = path.join(path.sep, "global", "lib");
const globalNodeModules = path.join(globalRoot, "node_modules");
const cliPackagePath = path.join(globalNodeModules, "@getpaseo", "cli");
const npmServerPackageRoot = path.join(cliPackagePath, "node_modules", "@getpaseo", "server");
const sourceServerPackageRoot = path.join(path.sep, "repo", "packages", "server");
const globalRoot = "/global/lib";
const globalNodeModules = `${globalRoot}/node_modules`;
const cliPackagePath = `${globalNodeModules}/@getpaseo/cli`;
const npmServerPackageRoot = `${cliPackagePath}/node_modules/@getpaseo/server`;
const sourceServerPackageRoot = "/repo/packages/server";
function npmGlobalPaseoInstall(
version: string,