mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -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} */
|
/** @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;
|
||||||
|
|
Loading…
Reference in a new issue