Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / payments / jest.config.ts
blob02cacf35edeeddd81dd7d8b6f6d7e8b93a3efd7f
1 import type { JestConfigWithTsJest } from 'ts-jest';
3 const jestConfig: JestConfigWithTsJest = {
4     setupFilesAfterEnv: ['./jest.setup.ts'],
5     moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
6     testEnvironment: 'jsdom',
7     transformIgnorePatterns: [
8         'node_modules/(?!(@proton/shared|@proton/components|@protontech/mutex-browser|pmcrypto|openpgp|@openpgp/web-stream-tools|@protontech/bip39|jsmimeparser|emoji-mart|msw|@mswjs)/)',
9     ],
10     transform: {
11         '^.+\\.(ts|js)x?$': '@swc/jest',
12     },
13     moduleNameMapper: {
14         '\\.(css|scss|less)$': '@proton/payments/__mocks__/styleMock.js',
15     },
18 export default jestConfig;