Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(test): check Windows host resource by destination

vastsa7a650de6e2e7
diff --cc apps/desktop/test/window-menu.test.mjs
index 92fff6bfd,92fff6bfd..80b1d0a9e
--- a/apps/desktop/test/window-menu.test.mjs
+++ b/apps/desktop/test/window-menu.test.mjs
@@@ -397,7 -397,7 +397,11 @@@ test("desktop packaging builds the nati
`${name} must build the native host before the packaging command`,
);
}
-- assert.equal(packageJson.build.win.extraResources[0].to, "bin/pi-desktop-host-core.exe");
++ assert.ok(
++ packageJson.build.win.extraResources.some(
++ ({ to }) => to === "bin/pi-desktop-host-core.exe",
++ ),
++ );
assert.equal(packageJson.build.linux.extraResources[0].to, "bin/pi-desktop-host-core");
assert.equal(packageJson.build.mac.extraResources[0].to, "bin/pi-desktop-host-core");
assert.match(iconScriptSource, /package_icon = BUILD \/ "icon\.png"/);