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:
SnapOtter
2026-05-11 22:48:05 +08:00
parent 56e8cf7352
commit 7a2ea2069b
5 changed files with 159 additions and 363 deletions
+2 -2
View File
@@ -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");