module.exports = { preset: 'ts-jest', testEnvironment: 'jsdom', roots: ['/src'], moduleFileExtensions: ['ts', 'js'], transform: { '^.+\\.ts$': 'ts-jest', '^.+\\.js$': 'babel-jest', }, testMatch: ['**/*.test.ts', '**/*.test.js'], // Matches both .test.ts and .test.js files };