test(web): extend timeout for ExcelJS workbook export tests
CI / Architecture Guardrails (push) Successful in 7m28s
CI / Assistant Split Regression (push) Successful in 8m49s
CI / Lint (push) Successful in 9m32s
CI / Typecheck (push) Successful in 10m14s
CI / Unit Tests (push) Successful in 10m41s
CI / Build (push) Successful in 9m1s
CI / E2E Tests (push) Successful in 7m15s
CI / Fresh-Linux Docker Deploy (push) Failing after 8m35s
CI / Release Images (push) Has been skipped

Same pattern as excel.test.ts and skillMatrixParser.test.ts:
ExcelJS dynamic import + writeBuffer exceeds the default 5s vitest
timeout on the QNAP CI runner.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-13 04:33:40 +02:00
parent 0b718f8025
commit a984635ef3
+11 -8
View File
@@ -21,17 +21,23 @@ describe("workbook export helpers", () => {
expect(worksheet?.getRow(1).values).toEqual([, "Skill", "Count", "Active"]);
expect(worksheet?.getRow(2).values).toEqual([, "TypeScript", 4, true]);
expect(worksheet?.getRow(3).values).toEqual([, "Planning", 2, false]);
});
}, 30000);
it("writes all provided sheets into the workbook", async () => {
const buffer = await createWorkbookArrayBufferFromSheets([
{
name: "Overview",
rows: [["Metric", "Value"], ["Resources", 12]],
rows: [
["Metric", "Value"],
["Resources", 12],
],
},
{
name: "People Finder",
rows: [["Name", "Skills"], ["Peter Parker", "Staffing, Forecasting"]],
rows: [
["Name", "Skills"],
["Peter Parker", "Staffing, Forecasting"],
],
},
]);
@@ -39,15 +45,12 @@ describe("workbook export helpers", () => {
const workbook = new ExcelJS.Workbook();
await workbook.xlsx.load(buffer as Parameters<typeof workbook.xlsx.load>[0]);
expect(workbook.worksheets.map((sheet) => sheet.name)).toEqual([
"Overview",
"People Finder",
]);
expect(workbook.worksheets.map((sheet) => sheet.name)).toEqual(["Overview", "People Finder"]);
expect(workbook.getWorksheet("Overview")?.getRow(2).values).toEqual([, "Resources", 12]);
expect(workbook.getWorksheet("People Finder")?.getRow(2).values).toEqual([
,
"Peter Parker",
"Staffing, Forecasting",
]);
});
}, 30000);
});