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:
@@ -7,6 +7,11 @@
|
||||
*/
|
||||
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 cleanup;
|
||||
let engine;
|
||||
|
||||
Reference in New Issue
Block a user