mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: pipeline templates, analytics opt-out, 83 conversion presets, positioning + e2e modernization
Lands five integrated branches: pipeline templates (#355), analytics opt-out (#354), 83 conversion presets bringing the catalog to 240 tools (#356), self-hosted positioning (#353), and e2e modernization (#351). Integration fixes: aligned stale web analytics tests with the opt-out/allow-list model, closed 3 CodeQL incomplete-sanitization alerts in the i18n generator, resolved settings/index/docs/format-matrix conflicts, and corrected tool counts to 240.
This commit is contained in:
@@ -57,16 +57,16 @@ describe("decodeHeic", () => {
|
||||
const heicBuf = readFixture(fixtures.image.formats("heic"));
|
||||
const { tmpdir } = await import("node:os");
|
||||
const { readdirSync } = await import("node:fs");
|
||||
const beforeSet = new Set(
|
||||
readdirSync(tmpdir()).filter((f) => f.startsWith("heic-in-") || f.startsWith("heic-out-")),
|
||||
);
|
||||
// decodeHeic stamps its temp files with this process's PID. Scope the check
|
||||
// to those so temp files created by other concurrent test-worker processes
|
||||
// (different PID) in the shared tmpdir cannot make this flaky.
|
||||
const mine = (f: string) =>
|
||||
f.startsWith(`heic-in-${process.pid}-`) || f.startsWith(`heic-out-${process.pid}-`);
|
||||
const beforeSet = new Set(readdirSync(tmpdir()).filter(mine));
|
||||
await decodeHeic(heicBuf);
|
||||
const after = readdirSync(tmpdir()).filter(
|
||||
(f) => f.startsWith("heic-in-") || f.startsWith("heic-out-"),
|
||||
);
|
||||
// Only check that files created during THIS call were cleaned up.
|
||||
// Other concurrent test workers may create temp files in the same dir.
|
||||
const leftover = after.filter((f) => !beforeSet.has(f));
|
||||
const leftover = readdirSync(tmpdir())
|
||||
.filter(mine)
|
||||
.filter((f) => !beforeSet.has(f));
|
||||
expect(leftover).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user