mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: clean up crop mode toggle, extend timeouts for long-running tools
- Remove content-aware crop mode toggle from tool-page (now handled internally) - Add content-aware-resize/crop to LONG_RUNNING_TOOLS for extended XHR timeout - Remove unused onModeChange prop from CropProps - Bump HEIC converter test timeouts to 60s to fix flaky failures
This commit is contained in:
@@ -28,7 +28,7 @@ describe("decodeHeic", () => {
|
||||
expect(meta.height).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("decodes sample.heif to a valid PNG buffer", async () => {
|
||||
it("decodes sample.heif to a valid PNG buffer", { timeout: 60_000 }, async () => {
|
||||
const heifBuf = await readFile(join(FIXTURES, "formats/sample.heif"));
|
||||
const result = await decodeHeic(heifBuf);
|
||||
expect(isPng(result)).toBe(true);
|
||||
@@ -55,7 +55,7 @@ describe("decodeHeic", () => {
|
||||
await expect(decodeHeic(Buffer.alloc(0))).rejects.toThrow();
|
||||
});
|
||||
|
||||
it("cleans up temp files after success", async () => {
|
||||
it("cleans up temp files after success", { timeout: 60_000 }, async () => {
|
||||
const heicBuf = await readFile(join(FIXTURES, "formats/sample.heic"));
|
||||
const { tmpdir } = await import("node:os");
|
||||
const { readdirSync } = await import("node:fs");
|
||||
|
||||
Reference in New Issue
Block a user