jest.config.ts
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
transform: {
'.(ts|tsx)': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
testEnvironment: 'jsdom',
moduleFileExtensions: ['ts', 'tsx', 'js'],
rootDir: 'src',
};
export default config;