Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / activation / jest.config.js
blob0adf1c2bb55c88f97b4886b7c34b8903d3295085
1 module.exports = {
2     setupFilesAfterEnv: ['./jest.setup.js'],
3     moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
4     collectCoverage: true,
5     collectCoverageFrom: [
6         'src/**/*.{js,jsx,ts,tsx}',
7         '!./**/*.interface.ts',
8         '!./**/(interface|interfaces).ts',
9         '!src/tests/*',
10         '!src/tests/**/*',
11     ],
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)/)',
16     ],
17     transform: {
18         '^.+\\.(m?js|tsx?)$': '<rootDir>/jest.transform.js',
19     },
20     moduleNameMapper: {
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',
24     },
25     coverageReporters: ['text-summary', 'json'],
26     reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],