Merge branch 'fix-typo-drive' into 'main'
[ProtonMail-WebClient.git] / packages / pass / jest.config.js
blobe7e09c5007725d153fb8a980c2a71e0a5c70e39d
1 module.exports = {
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)/)',
7     ],
8     transform: { '^.+\\.(m?js|tsx?)$': 'babel-jest' },
9     coverageReporters: ['text-summary', 'json'],
10     moduleNameMapper: {
11         '\\.(css|scss|less)$': '@proton/components/__mocks__/styleMock.js',
12     },
13     reporters: ['default', ['jest-junit', { suiteNameTemplate: '{filepath}', outputName: 'test-report.xml' }]],
14     testTimeout: 30000,
15     resolver: './jest.resolver.js',
16     globals: {
17         BUILD_TARGET: 'test',
18         ENV: 'test',
19         EXTENSION_BUILD: false,
20         DESKTOP_BUILD: false,
21     },