2 setupFilesAfterEnv: ['./jest.setup.js'],
3 moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
6 'src/**/*.{js,jsx,ts,tsx}',
7 '!./**/*.interface.ts',
8 '!./**/(interface|interfaces).ts',
12 resolver: './jest.resolver.js',
13 testEnvironment: '@proton/jest-env',
14 transformIgnorePatterns: [
15 'node_modules/(?!(@proton/shared|@proton/components|@protontech/mutex-browser|pmcrypto|pmcrypto-v6-canary|openpgp|@openpgp/web-stream-tools|@openpgp/asmcrypto.js|@openpgp/noble-hashes|@protontech/bip39|jsmimeparser|emoji-mart|msw|@mswjs)/)',
18 '^.+\\.(m?js|tsx?)$': '<rootDir>/jest.transform.js',
21 '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': '@proton/components/__mocks__/fileMock.js',
22 '\\.(css|scss|less)$': '@proton/components/__mocks__/styleMock.js',
23 '\\.(md)$': '<rootDir>/src/__mocks__/mdMock.ts',
25 coverageReporters: ['text-summary', 'json'],
26 reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],