From b2216efc619da3d64787e9c459d80aaf6616b428 Mon Sep 17 00:00:00 2001 From: 4gray Date: Tue, 8 Sep 2026 04:28:44 +0200 Subject: [PATCH] test(downloads): resolve archive fixture from workspace root --- .../src/xtream-catchup-timezone.e2e.ts | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/apps/electron-backend-e2e/src/xtream-catchup-timezone.e2e.ts b/apps/electron-backend-e2e/src/xtream-catchup-timezone.e2e.ts index 01b57eb37..d2f4f8d20 100644 --- a/apps/electron-backend-e2e/src/xtream-catchup-timezone.e2e.ts +++ b/apps/electron-backend-e2e/src/xtream-catchup-timezone.e2e.ts @@ -392,7 +392,12 @@ test('@downloads @epg @xtream @electron downloads a completed archive into the l expect(row?.filePath).toMatch(/archive-downloads.*\.ts$/); if (!row?.filePath) throw new Error('No archive file'); expect(readFileSync(row.filePath)).toEqual( - readFileSync('apps/xtream-mock-server/src/fixtures/live.mpegts') + readFileSync( + join( + workspaceRoot, + 'apps/xtream-mock-server/src/fixtures/live.mpegts' + ) + ) ); expect(captured).toEqual([]); // A failed completion status write must recover the proven file in place @@ -476,7 +481,12 @@ test('@downloads @epg @xtream @electron downloads a completed archive into the l ); row.filePath = resubmitted.filePath; expect(readFileSync(row.filePath)).toEqual( - readFileSync('apps/xtream-mock-server/src/fixtures/live.mpegts') + readFileSync( + join( + workspaceRoot, + 'apps/xtream-mock-server/src/fixtures/live.mpegts' + ) + ) ); await app.mainWindow .getByRole('button', { name: 'Open downloads', exact: true }) @@ -602,7 +612,12 @@ test('@downloads @epg @xtream @electron downloads a completed archive into the l 'unrelated retained file' ); expect(readFileSync(redownloaded.filePath)).toEqual( - readFileSync('apps/xtream-mock-server/src/fixtures/live.mpegts') + readFileSync( + join( + workspaceRoot, + 'apps/xtream-mock-server/src/fixtures/live.mpegts' + ) + ) ); // Fail owned cleanup after private capture. Its recovery pointer must // survive a process restart without relying on hardlink restoration.