* feat(projects): add local icons and colors * refactor(projects): simplify appearance handling * fix(projects): serialize appearance saves * test(app): update project appearance expectations * test: fix project appearance CI expectations * refactor(projects): organize appearance code * fix(server): adopt main's reconcile model in project appearance updates * fix(projects): preserve host-local appearance targets * fix(desktop): restore Linux development startup Ubuntu can block Electron's unprivileged user-namespace fallback while the npm-installed sandbox helper is not SUID. Disable the Chromium process sandbox only in the Linux development runner so packaged desktop policy remains unchanged. * feat(projects): add custom project icons Keep URL acquisition in the client so the host daemon only validates uploaded bytes. Project name and icon changes share one adaptive edit sheet. * refactor(settings): scope projects by host --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
19 lines
626 B
JavaScript
19 lines
626 B
JavaScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { resolveDevElectronArgs } from "./dev-runner-args.mjs";
|
|
|
|
describe("resolveDevElectronArgs", () => {
|
|
it("disables the Chromium process sandbox for Linux development", () => {
|
|
expect(resolveDevElectronArgs("linux", ["--remote-debugging-port=9223"])).toEqual([
|
|
"--no-sandbox",
|
|
"--remote-debugging-port=9223",
|
|
]);
|
|
});
|
|
|
|
it.each(["darwin", "win32"])("preserves forwarded arguments on %s", (platform) => {
|
|
expect(resolveDevElectronArgs(platform, ["--remote-debugging-port=9223"])).toEqual([
|
|
"--remote-debugging-port=9223",
|
|
]);
|
|
});
|
|
});
|