test(workflows): raise beforeAll timeout for migration-heavy CRM suites

The workflow/dunning suites boot the full core-migration set in beforeAll via
bootCrmDb. In isolation that's ~1.3s, but under full-suite parallel load on a
small CI runner it can exceed Jest's 5s default, timing out beforeAll and
failing every test in the file (the CI flake). Match the existing pattern used
by the other migration-heavy CRM suites (discountLineItems, incomingInvoiceRebill)
and set jest.setTimeout(30000) on workflowEngine, workflowRoutes and
invoiceDunning.
This commit is contained in:
Luca
2026-06-23 14:40:07 +02:00
parent 62ba905464
commit b38c216f22
3 changed files with 15 additions and 0 deletions
@@ -10,6 +10,11 @@
*/ */
const { bootCrmDb, seedMinimal } = require('./helpers/crmDb'); const { bootCrmDb, seedMinimal } = require('./helpers/crmDb');
// bootCrmDb runs the full core-migration set in beforeAll; under full-suite
// parallel load on a small CI runner that can exceed the 5s default. Match the
// other migration-heavy CRM suites (discountLineItems, incomingInvoiceRebill).
jest.setTimeout(30000);
let db; let db;
let cleanup; let cleanup;
let invoiceService; let invoiceService;
@@ -7,6 +7,11 @@
*/ */
const { bootCrmDb } = require('./helpers/crmDb'); const { bootCrmDb } = require('./helpers/crmDb');
// bootCrmDb runs the full core-migration set in beforeAll; under full-suite
// parallel load on a small CI runner that can exceed the 5s default. Match the
// other migration-heavy CRM suites (discountLineItems, incomingInvoiceRebill).
jest.setTimeout(30000);
let db; let db;
let cleanup; let cleanup;
let engine; let engine;
@@ -6,6 +6,11 @@ const {
bootCrmDb, seedMinimal, assignAdminRole, mintAdminToken, buildRouteApp, bootCrmDb, seedMinimal, assignAdminRole, mintAdminToken, buildRouteApp,
} = require('./helpers/crmDb'); } = require('./helpers/crmDb');
// bootCrmDb runs the full core-migration set in beforeAll; under full-suite
// parallel load on a small CI runner that can exceed the 5s default. Match the
// other migration-heavy CRM suites (discountLineItems, incomingInvoiceRebill).
jest.setTimeout(30000);
let db; let db;
let cleanup; let cleanup;
let app; let app;