refs #6053 cpus
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-02-02 14:04:20 +01:00
parent 5bc67333dc
commit fa32cf37cd
1 changed files with 3 additions and 0 deletions

View File

@ -1,7 +1,9 @@
// 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 / 5) - 1;
module.exports = {
name: 'front end',
displayName: {
@ -12,6 +14,7 @@ module.exports = {
setupFilesAfterEnv: [
'./jest-front.js'
],
maxWorkers: maxCpus,
testMatch: [
'**/front/**/*.spec.js',
'**/print/**/*.spec.js',