From 9ad2bfc7b30e0eb2d7ae1406874b8caba5a1f121 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 29 May 2026 13:43:21 +0200 Subject: [PATCH] tests(e2e): don't compare hashes of profile pictures --- tests/specs/cli.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/specs/cli.spec.ts b/tests/specs/cli.spec.ts index 8b1733f8..0e6e7234 100644 --- a/tests/specs/cli.spec.ts +++ b/tests/specs/cli.spec.ts @@ -109,10 +109,16 @@ function compareExports(dir1: string, dir2: string): void { const hashes2 = hashAllFiles(dir2); const files1 = Object.keys(hashes1).sort(); - const files2 = Object.keys(hashes2).sort().filter(p => !p.includes('.inited')); + const files2 = Object.keys(hashes2) + .sort() + .filter((p) => !p.includes('.inited')); expect(files2).toEqual(files1); for (const file of files1) { + const profilePictures = ['CF.png', 'CR.png']; + if (profilePictures.includes(path.basename(file))) { + continue; // Skip profile pictures because they get generated on demand and can differ between exports + } expect(hashes2[file], `${file} hash should match`).toEqual(hashes1[file]); }