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