2023-06-16 11:38:11 +03:00
|
|
|
module.exports = {
|
2024-03-05 19:43:31 +03:00
|
|
|
// to enable logs, comment out the following line
|
|
|
|
silent: true,
|
2023-06-16 11:38:11 +03:00
|
|
|
clearMocks: true,
|
|
|
|
preset: 'ts-jest',
|
|
|
|
testEnvironment: 'node',
|
2024-03-15 20:37:09 +03:00
|
|
|
modulePathIgnorePatterns: ['<rootDir>/dist'],
|
2023-06-16 11:38:11 +03:00
|
|
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^src/(.*)': '<rootDir>/src/$1',
|
|
|
|
},
|
|
|
|
rootDir: './',
|
|
|
|
testRegex: '.*\\.spec\\.ts$',
|
|
|
|
transform: {
|
|
|
|
'^.+\\.(t|j)s$': 'ts-jest',
|
|
|
|
},
|
2024-05-13 15:50:27 +03:00
|
|
|
fakeTimers: {
|
|
|
|
enableGlobally: true,
|
|
|
|
},
|
2023-06-16 11:38:11 +03:00
|
|
|
collectCoverageFrom: ['**/*.(t|j)s'],
|
|
|
|
coverageDirectory: '../coverage',
|
|
|
|
};
|