/** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: 'ts-jest', testEnvironment: 'jsdom', setupFilesAfterEnv: ['/.storybook/jest-setup.ts'], transform: { '^.+\\.(ts|tsx|js|jsx)$': 'ts-jest', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], testMatch: ['**/__tests__/**/*.(test|spec).[jt]s?(x)', '**/?(*.)+(test|spec).[jt]s?(x)'], moduleNameMapper: { '\\.(css|scss|sass)$': 'identity-obj-proxy', }, }