mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 09:48:47 -04:00
Limit ts-jest worker usage in Jest configs to prevent memory exhaustion on high-core-count machines.
This commit is contained in:
@@ -26,4 +26,8 @@ module.exports = {
|
||||
|
||||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
|
||||
silent: true,
|
||||
// Each ts-jest worker is a full TS-compiling process; the default (cpus - 1) can spawn enough
|
||||
// of them in parallel to exhaust memory on high-core-count machines.
|
||||
maxWorkers: '50%',
|
||||
workerIdleMemoryLimit: '512MB',
|
||||
}
|
||||
|
||||
@@ -23,4 +23,8 @@ module.exports = {
|
||||
|
||||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
|
||||
silent: true,
|
||||
// Each ts-jest worker is a full TS-compiling process; the default (cpus - 1) can spawn enough
|
||||
// of them in parallel to exhaust memory on high-core-count machines.
|
||||
maxWorkers: '50%',
|
||||
workerIdleMemoryLimit: '512MB',
|
||||
}
|
||||
|
||||
@@ -27,4 +27,8 @@ module.exports = {
|
||||
|
||||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
|
||||
silent: true,
|
||||
// Each ts-jest worker is a full TS-compiling process; the default (cpus - 1) can spawn enough
|
||||
// of them in parallel to exhaust memory on high-core-count machines.
|
||||
maxWorkers: '50%',
|
||||
workerIdleMemoryLimit: '512MB',
|
||||
}
|
||||
|
||||
@@ -12,4 +12,8 @@ module.exports = {
|
||||
testMatch: ['**/*.test.ts'],
|
||||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
|
||||
silent: true,
|
||||
// Each ts-jest worker is a full TS-compiling process; the default (cpus - 1) can spawn enough
|
||||
// of them in parallel to exhaust memory on high-core-count machines.
|
||||
maxWorkers: '50%',
|
||||
workerIdleMemoryLimit: '512MB',
|
||||
}
|
||||
|
||||
@@ -21,4 +21,8 @@ module.exports = {
|
||||
'<rootDir>/web',
|
||||
],
|
||||
silent: true,
|
||||
// Each ts-jest worker is a full TS-compiling process; the default (cpus - 1) can spawn enough
|
||||
// of them in parallel to exhaust memory on high-core-count machines.
|
||||
maxWorkers: '50%',
|
||||
workerIdleMemoryLimit: '512MB',
|
||||
}
|
||||
|
||||
@@ -23,4 +23,8 @@ module.exports = {
|
||||
|
||||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
|
||||
silent: true,
|
||||
// Each ts-jest worker is a full TS-compiling process; the default (cpus - 1) can spawn enough
|
||||
// of them in parallel to exhaust memory on high-core-count machines.
|
||||
maxWorkers: '50%',
|
||||
workerIdleMemoryLimit: '512MB',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user