mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 09:48:47 -04:00
29 lines
742 B
TypeScript
29 lines
742 B
TypeScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/*.test.ts'],
|
|
testPathIgnorePatterns: [
|
|
// '/node_modules/',
|
|
// '/dist/',
|
|
// '/coverage/',
|
|
'/tests/e2e',
|
|
// '/lib/',
|
|
// 'backend/email/emails/test.ts',
|
|
'common/src/socials.test.ts',
|
|
// 'backend/api/src',
|
|
// 'martin',
|
|
],
|
|
projects: [
|
|
'<rootDir>/backend/api',
|
|
'<rootDir>/backend/shared',
|
|
'<rootDir>/backend/email',
|
|
'<rootDir>/common',
|
|
'<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',
|
|
}
|