mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
ci: Update Jest setup on the CI to avoid OOM errors (no-changelog) (#5042)
This commit is contained in:
parent
4daf905ce2
commit
11b75c02ea
|
@ -11,7 +11,7 @@ const tsJestOptions = {
|
|||
};
|
||||
|
||||
/** @type {import('jest').Config} */
|
||||
module.exports = {
|
||||
const config = {
|
||||
verbose: true,
|
||||
testEnvironment: 'node',
|
||||
testRegex: '\\.(test|spec)\\.(js|ts)$',
|
||||
|
@ -23,3 +23,10 @@ module.exports = {
|
|||
'^@/(.*)$': '<rootDir>/src/$1',
|
||||
},
|
||||
};
|
||||
|
||||
if (process.env.CI === 'true') {
|
||||
config.maxWorkers = 2;
|
||||
config.workerIdleMemoryLimit = 2048;
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
|
|
Loading…
Reference in a new issue