Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
test: isolate PAKE_CREATE_APP in mac-builder target selection test
Tw93e2a82a48c4a8
diff --git a/tests/unit/mac-builder-targets.test.ts b/tests/unit/mac-builder-targets.test.tsindex 128a29e2..1b39372d 100644--- a/tests/unit/mac-builder-targets.test.ts+++ b/tests/unit/mac-builder-targets.test.ts@@ -1,5 +1,5 @@import path from 'path';-import { describe, it, expect, vi } from 'vitest';+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';// tauriConfig.ts reads pake.json at module load, keyed off npmDirectory.// Point it at the repo root so the import chain resolves under vitest.@@ -15,6 +15,17 @@ const makeBuilder = (targets?: string) =>new MacBuilder({ name: 'Demo', targets } as PakeAppOptions);describe('MacBuilder target selection', () => {+ // The CI fast-test step runs with PAKE_CREATE_APP=1, which forces the macOS+ // build format to `app` and strips the DMG name suffix. Clear it so these+ // DMG-naming assertions stay deterministic regardless of the ambient env.+ beforeEach(() => {+ vi.stubEnv('PAKE_CREATE_APP', '');+ });++ afterEach(() => {+ vi.unstubAllEnvs();+ });+it('builds an app bundle when --targets app is requested', () => {// The app format ships a bare `.app`, so the file name carries no// version/arch suffix. This proves `--targets app` is honoured rather