Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / srp / jest.config.js
blob66408f8b7eac02bee5193675d220e8ca64a13c24
1 module.exports = {
2     preset: 'ts-jest',
3     moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
4     transformIgnorePatterns: [
5         'node_modules/(?!(@proton/shared|@proton/components|@protontech/mutex-browser|pmcrypto|openpgp|@openpgp/web-stream-tools|@protontech/bip39|jsmimeparser|emoji-mart|msw|@mswjs)/)',
6     ],
7     testRegex: 'lib/.*\\.test\\.ts$',
8     clearMocks: true,
9     collectCoverage: false,
10     coverageReporters: ['text-summary', 'json'],
11     reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],
12     transform: {
13         '.*': [
14             'ts-jest',
15             {
16                 babelConfig: true,
17             },
18         ],
19     },
20     resolver: './jest.resolver.js',