diff --git a/packages/desktop/electron-builder.config.test.ts b/packages/desktop/electron-builder.config.test.ts index 1156529fda..b7d1423406 100644 --- a/packages/desktop/electron-builder.config.test.ts +++ b/packages/desktop/electron-builder.config.test.ts @@ -1,4 +1,5 @@ import { expect, test } from "bun:test" +import path from "node:path" import type { Configuration } from "electron-builder" import type { GenericServerOptions } from "builder-util-runtime" import { GenericProvider } from "electron-updater/out/providers/GenericProvider" @@ -183,6 +184,9 @@ test("ships and re-signs the codev-vmm helper on macOS", async () => { const helper = (resources as Exclude) .filter((entry) => typeof entry !== "string") .find((entry) => entry.to === "codev-vmm") - expect(helper?.from).toEndWith("codev-sandbox/native/vzhelper/dist/codev-vmm") + // The config builds this with path.join, so the separators are the build + // host's. Joining the expectation too keeps the assertion about the location + // rather than about which platform is running the test. + expect(helper?.from).toEndWith(path.join("codev-sandbox", "native", "vzhelper", "dist", "codev-vmm")) expect(typeof config.afterSign).toBe("function") })