962f1d9586
Stable backport combining #860 (never reached stable) and #900: - jest.config.js gains testTimeout: 120000 — stable still ran on Jest's 5s default for anything unpinned, while its migration chain (134 core migrations via backports) is nearly as long as beta's. - All 19 suite-level jest.setTimeout(30000/60000) pins raised to 120s; local pins override the config default (#860's rationale). - All 15 hook-ARGUMENT timeout pins on migration-booting beforeAll hooks raised to 120s (#900's rationale — the 3.97.0-beta.0 release PR failed on exactly this class on the beta side). Untouched: the three suites whose pinned hooks don't run migrations (webhookDelivery, imageProcessor.storage, storageBackend) and publicQuotes' 30s pin on the rate-limit lockout test. No test logic changed. Co-authored-by: Paul Nothaft <paul@MacStudio-von-Paul.local>
17 lines
470 B
JavaScript
17 lines
470 B
JavaScript
module.exports = {
|
|
testEnvironment: 'node',
|
|
// bootCrmDb() runs EVERY core migration in beforeAll and the chain keeps
|
|
// growing (134 migrations and counting via backports). 120s matches the
|
|
// beta-branch convention from #860.
|
|
testTimeout: 120000,
|
|
coverageDirectory: 'coverage',
|
|
collectCoverageFrom: [
|
|
'src/**/*.js',
|
|
'!src/**/*.test.js'
|
|
],
|
|
testMatch: [
|
|
'**/__tests__/**/*.test.js'
|
|
],
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js']
|
|
};
|