3 setupFilesAfterEnv: ['./jest.setup.js'],
4 moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
5 testEnvironment: '@proton/jest-env',
6 transformIgnorePatterns: [
7 'node_modules/(?!(@proton/shared|@proton/components|pmcrypto|pmcrypto-v6-canary|openpgp|@openpgp/web-stream-tools|otpauth)/)',
9 transform: { '^.+\\.(m?js|tsx?)$': 'babel-jest' },
10 coverageReporters: ['text-summary', 'json'],
11 reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],
14 'proton-pass-extension/(.*)$': ['<rootDir>/src/__mocks__/$1', '<rootDir>/src/$1'],
15 '\\.(css|scss|less)$': '@proton/components/__mocks__/styleMock.js',
20 EXTENSION_BUILD: true,