Skip to content

Commit 542fe3c

Browse files
maria-rcksvoltcrash
authored andcommitted
test(desktop): provide desktop config to the pre-ready idempotence test
1 parent a2be791 commit 542fe3c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/desktop/src/app/DesktopPreReadyPlatform.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ describe("DesktopPreReadyPlatform", () => {
171171

172172
it.effect("leaves an identical pre-ready entry and icon untouched across launches", () => {
173173
vi.stubEnv("VITE_DEV_SERVER_URL", "");
174-
vi.stubEnv("XDG_DATA_HOME", "/xdg");
175-
vi.stubEnv("APPIMAGE", "/Applications/current.AppImage");
176174
const files = new Map<string, string | Buffer>([
177175
[
178176
"/tmp/.mount_T3/resources/app.asar/apps/desktop/prod-resources/icon.png",
@@ -199,6 +197,12 @@ describe("DesktopPreReadyPlatform", () => {
199197
assert.equal(setDesktopNameMock.mock.calls.length, 2);
200198
}).pipe(
201199
Effect.provideService(HostProcess.Platform, "linux"),
200+
Effect.provide(
201+
DesktopConfig.layerTest({
202+
XDG_DATA_HOME: "/xdg",
203+
APPIMAGE: "/Applications/current.AppImage",
204+
}),
205+
),
202206
Effect.ensuring(Effect.sync(() => vi.unstubAllEnvs())),
203207
);
204208
});

0 commit comments

Comments
 (0)