mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Update Jest setup on the CI to avoid OOM errors (no-changelog) (#5042)
This commit is contained in:
committed by
GitHub
parent
4daf905ce2
commit
11b75c02ea
@@ -11,7 +11,7 @@ const tsJestOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** @type {import('jest').Config} */
|
/** @type {import('jest').Config} */
|
||||||
module.exports = {
|
const config = {
|
||||||
verbose: true,
|
verbose: true,
|
||||||
testEnvironment: 'node',
|
testEnvironment: 'node',
|
||||||
testRegex: '\\.(test|spec)\\.(js|ts)$',
|
testRegex: '\\.(test|spec)\\.(js|ts)$',
|
||||||
@@ -23,3 +23,10 @@ module.exports = {
|
|||||||
'^@/(.*)$': '<rootDir>/src/$1',
|
'^@/(.*)$': '<rootDir>/src/$1',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (process.env.CI === 'true') {
|
||||||
|
config.maxWorkers = 2;
|
||||||
|
config.workerIdleMemoryLimit = 2048;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
|
|||||||
Reference in New Issue
Block a user