Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / components / jest.config.js
blob75bd57d614c022c86f22d115ee1699f95e6d829f
1 module.exports = {
2     setupFilesAfterEnv: ['./jest.setup.js'],
3     moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
4     collectCoverageFrom: [
5         'components/**/*.{js,jsx,ts,tsx}',
6         'containers/**/*.{js,jsx,ts,tsx}',
7         'helpers/**/*.{js,jsx,ts,tsx}',
8         'hooks/**/*.{js,jsx,ts,tsx}',
9         '!src/app/locales.ts',
10     ],
11     testEnvironment: '@proton/jest-env',
12     transformIgnorePatterns: [
13         '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)/)',
14     ],
15     transform: {
16         '^.+\\.(m?js|tsx?)$': '<rootDir>/jest.transform.js',
17     },
18     moduleNameMapper: {
19         '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': '@proton/components/__mocks__/fileMock.js',
20         '\\.(css|scss|less)$': '@proton/components/__mocks__/styleMock.js',
21         '\\.(md)$': '<rootDir>/src/__mocks__/mdMock.ts',
22     },
23     resolver: './jest.resolver.js',
24     coverageReporters: ['text-summary', 'json'],
25     reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],