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)/)',
11 '^.+\\.(ts|js)x?$': '@swc/jest',
14 '\\.(css|scss|less)$': '@proton/payments/__mocks__/styleMock.js',
18 export default jestConfig;