Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/desktop/electron-builder.config.test.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -183,6 +184,9 @@ test("ships and re-signs the codev-vmm helper on macOS", async () => {
const helper = (resources as Exclude<typeof resources, string | undefined>)
.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")
})
Loading