Files
Compass/jest.config.ts

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',
}