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