import type { Config } from 'jest'; export default { moduleNameMapper: { '@/(.*)': '/src/$1', '@mocks/(.*)': '/__mocks__/$1', '@tests/(.*)': '/tests/$1', '\\.(css|scss|sass|less)$': 'identity-obj-proxy', '\\.(jpg|jpeg|png|gif|webp|svg)$': '/__mocks__/jest/fileMock.js', }, setupFilesAfterEnv: ['/configs/jest/setupTests.ts'], testEnvironment: '/configs/jest/jest-fixed-jsdom.ts', transform: { '^.+\\.(t|j)sx?$': ['@swc/jest', { jsc: { transform: { react: { runtime: 'automatic', }, }, }, }], }, transformIgnorePatterns: ['node_modules/(?!(until-async)/)'], } as Config;