Switch to @mariozechner/clipboard fork with musl support

fixes #533
This commit is contained in:
Mario Zechner 2026-01-08 04:50:37 +01:00
parent b1fb910625
commit bf9a415541
5 changed files with 155 additions and 150 deletions

View file

@ -17,7 +17,7 @@ vi.mock("child_process", () => {
};
});
vi.mock("@crosscopy/clipboard", () => {
vi.mock("@mariozechner/clipboard", () => {
return {
default: mocks.clipboard,
};
@ -54,7 +54,7 @@ describe("readClipboardImage", () => {
mocks.clipboard.getImageBinary.mockReset();
});
test("Wayland: uses wl-paste and never calls @crosscopy/clipboard", async () => {
test("Wayland: uses wl-paste and never calls @mariozechner/clipboard", async () => {
mocks.clipboard.hasImage.mockImplementation(() => {
throw new Error("clipboard.hasImage should not be called on Wayland");
});
@ -107,7 +107,7 @@ describe("readClipboardImage", () => {
expect(Array.from(result?.bytes ?? [])).toEqual([9, 8]);
});
test("Non-Wayland: uses @crosscopy/clipboard", async () => {
test("Non-Wayland: uses @mariozechner/clipboard", async () => {
mocks.spawnSync.mockImplementation(() => {
throw new Error("spawnSync should not be called for non-Wayland sessions");
});