Use source loader for email sprite icons
[ProtonMail-WebClient.git] / packages / payments / jest.config.ts
blobc9dcb466c9c85ed1da774b497c71a145db89198c
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|pmcrypto-v6-canary|openpgp|@openpgp/web-stream-tools|@openpgp/asmcrypto.js|@openpgp/noble-hashes|@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;