refs #6053 cpus #1991
|
@ -1,6 +1,8 @@
|
||||||
// For a detailed explanation regarding each configuration property, visit:
|
// For a detailed explanation regarding each configuration property, visit:
|
||||||
// https://jestjs.io/docs/en/configuration.html
|
// https://jestjs.io/docs/en/configuration.html
|
||||||
/* eslint max-len: ["error", { "code": 150 }]*/
|
/* eslint max-len: ["error", { "code": 150 }]*/
|
||||||
|
const cpus = require('os').cpus().length;
|
||||||
|
const maxCpus = Math.floor(cpus * 0.45);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'front end',
|
name: 'front end',
|
||||||
|
@ -12,6 +14,7 @@ module.exports = {
|
||||||
setupFilesAfterEnv: [
|
setupFilesAfterEnv: [
|
||||||
'./front/jest-setup.js'
|
'./front/jest-setup.js'
|
||||||
],
|
],
|
||||||
|
maxWorkers: maxCpus,
|
||||||
testMatch: [
|
testMatch: [
|
||||||
'**/front/**/*.spec.js',
|
'**/front/**/*.spec.js',
|
||||||
'**/print/**/*.spec.js',
|
'**/print/**/*.spec.js',
|
||||||
|
|
Loading…
Reference in New Issue