translation-terrace/jest.config.ts
2025-02-05 06:00:47 -08:00

20 lines
414 B
TypeScript

// jest.config.ts
import { resolve } from "path"
const jestExpoPreset = require('jest-expo/jest-preset');
const jestConfig = {
// preset: 'jest-expo',
...jestExpoPreset,
// preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)$': 'babel-jest',
},
moduleNameMapper: {
'@': "<rootDir>"
},
transformIgnorePatterns: [
...jestExpoPreset.transformIgnorePatterns,
]
}
export default jestConfig