Merge branch 'format-suggestion-summary' into 'main'
[ProtonMail-WebClient.git] / applications / account / jest.config.js
blob78e0b41e0879a439de7a89c60b6c77b706d07659
1 module.exports = {
2     setupFilesAfterEnv: ['./jest.setup.js'],
3     moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
4     testEnvironment: '@proton/jest-env',
5     transformIgnorePatterns: [
6         'node_modules/(?!(@proton/shared|@proton/components|@protontech/mutex-browser|pmcrypto|pmcrypto-v6-canary|openpgp|@openpgp/web-stream-tools|@openpgp/asmcrypto.js|@protontech/bip39|emoji-mart)/)',
7     ],
8     transform: {
9         '^.+\\.(m?js|tsx?)$': '<rootDir>/jest.transform.js',
10     },
11     moduleNameMapper: {
12         '\\.(jpg|jpeg|png|pdf|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$':
13             '@proton/components/__mocks__/fileMock.js',
14         '\\.(css|scss|less)$': '@proton/components/__mocks__/styleMock.js',
15         '\\.(md)$': '<rootDir>/src/__mocks__/mdMock.ts',
16     },
17     collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/app/locales.ts'],
18     coverageReporters: ['text-summary', 'json'],
19     reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],
20     resolver: './jest.resolver.js',