fix: add 120s timeout to all HEIF/HEIC integration tests for CI

Comprehensively adds { timeout: 120_000 } to every HEIF/HEIC
integration test across 40 test files. HEIF decoding on CI runners
is significantly slower than local, causing sporadic timeouts at
the default 5s or previous 60s limits.
This commit is contained in:
SnapOtter
2026-05-01 19:51:47 +08:00
parent 6a44c455a3
commit d1f2f63453
42 changed files with 465 additions and 361 deletions
+3 -3
View File
@@ -717,7 +717,7 @@ describe("svg-to-raster", () => {
// ── Branch coverage: HEIF output with preview (line 363, 404) ───────
it("converts to heif format and generates a preview", async () => {
it("converts to heif format and generates a preview", { timeout: 120_000 }, async () => {
const { body, contentType } = createMultipartPayload([
{ name: "file", filename: "test.svg", contentType: "image/svg+xml", content: SVG },
{ name: "settings", content: JSON.stringify({ outputFormat: "heif" }) },
@@ -997,7 +997,7 @@ describe("svg-to-raster", () => {
// ── Branch coverage: batch with heif output ────────────────────────
it("batch converts SVGs to heif format", async () => {
it("batch converts SVGs to heif format", { timeout: 120_000 }, async () => {
const { body, contentType } = createMultipartPayload([
{ name: "file", filename: "a.svg", contentType: "image/svg+xml", content: SVG },
{ name: "file", filename: "b.svg", contentType: "image/svg+xml", content: SVG },
@@ -1063,7 +1063,7 @@ describe("svg-to-raster", () => {
// ── Branch coverage: heif + background color combination ───────────
it("converts to heif format with background color applied", async () => {
it("converts to heif format with background color applied", { timeout: 120_000 }, async () => {
const { body, contentType } = createMultipartPayload([
{ name: "file", filename: "test.svg", contentType: "image/svg+xml", content: SVG },
{