Merge pull request 'refs #6053 cpus' (!1991) from 6053-lessRAM into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1991 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
1a7fa2e49c
|
@ -1,6 +1,8 @@
|
|||
// For a detailed explanation regarding each configuration property, visit:
|
||||
// https://jestjs.io/docs/en/configuration.html
|
||||
/* eslint max-len: ["error", { "code": 150 }]*/
|
||||
const cpus = require('os').cpus().length;
|
||||
const maxCpus = Math.floor(cpus * 0.45);
|
||||
|
||||
module.exports = {
|
||||
name: 'front end',
|
||||
|
@ -12,6 +14,7 @@ module.exports = {
|
|||
setupFilesAfterEnv: [
|
||||
'./front/jest-setup.js'
|
||||
],
|
||||
maxWorkers: maxCpus,
|
||||
testMatch: [
|
||||
'**/front/**/*.spec.js',
|
||||
'**/print/**/*.spec.js',
|
||||
|
|
Loading…
Reference in New Issue