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|jsmimeparser|@protontech/mutex-browser|pmcrypto|pmcrypto-v6-canary|openpgp|@openpgp/web-stream-tools|@openpgp/asmcrypto.js|@openpgp/noble-hashes|@protontech/bip39|otpauth|@protontech/pass-rust-core/ui)/)',
8 transform: { '^.+\\.(m?js|tsx?)$': 'babel-jest' },
9 coverageReporters: ['text-summary', 'json'],
11 '\\.(css|scss|less)$': '@proton/components/__mocks__/styleMock.js',
13 reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],
15 resolver: './jest.resolver.js',
19 EXTENSION_BUILD: false,