2 setupFilesAfterEnv: ['./jest.setup.js'],
3 moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
5 'components/**/*.{js,jsx,ts,tsx}',
6 'containers/**/*.{js,jsx,ts,tsx}',
7 'helpers/**/*.{js,jsx,ts,tsx}',
8 'hooks/**/*.{js,jsx,ts,tsx}',
11 testEnvironment: '@proton/jest-env',
12 transformIgnorePatterns: [
13 'node_modules/(?!(@proton/shared|@proton/components|@protontech/mutex-browser|pmcrypto|@openpgp/web-stream-tools|@protontech/bip39|emoji-mart)/)',
16 '^.+\\.(js|tsx?)$': '<rootDir>/jest.transform.js',
19 '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': '@proton/components/__mocks__/fileMock.js',
21 coverageReporters: ['text-summary', 'json'],
22 reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],