Merge branch 'INDA-330-pii-update' into 'main'
[ProtonMail-WebClient.git] / applications / verify / jest.config.js
blobc1e907c7cea8dc7aa72ee5a5bf01fe8ee005830f
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|pmcrypto-v6-canary|@protontech/bip39)/)',
8 ],
9 transform: {
10 '^.+\\.(js|tsx?)$': '<rootDir>/jest.transform.js',
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',
17 coverageReporters: ['text-summary', 'json'],
18 reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],