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