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)/)',
9 '^.+\\.(m?js|tsx?)$': '<rootDir>/jest.transform.js',
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',
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',