Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

test: preserve Linux platform defaults in builder mock

Tw937a7a7b7965cd
diff --git a/tests/unit/linux-multi-target.test.ts b/tests/unit/linux-multi-target.test.ts
index d5b896ec..be278479 100644
--- a/tests/unit/linux-multi-target.test.ts
+++ b/tests/unit/linux-multi-target.test.ts
@@ -5,7 +5,8 @@ vi.mock('@/utils/dir', () => ({
tauriConfigDirectory: path.join(process.cwd(), 'src-tauri', '.pake'),
}));
vi.mock('@/utils/shell', () => ({ shellExec: vi.fn() }));
-vi.mock('@/utils/platform', () => ({
+vi.mock('@/utils/platform', async (original) => ({
+ ...(await original<object>()),
IS_MAC: false,
IS_WIN: false,
IS_LINUX: true,