translation-terrace/jest.config.ts
2025-01-29 17:17:59 -08:00

22 lines
728 B
TypeScript

// jest.config.ts
import { resolve } from "path"
import { createJsWithBabelPreset, JestConfigWithTsJest } from 'ts-jest'
const jsWithBabelPreset = createJsWithBabelPreset({
tsconfig: 'tsconfig.spec.json',
babelConfig: true,
})
const jestConfig: JestConfigWithTsJest = {
preset: 'react-native',
transform: jsWithBabelPreset.transform,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
// moduleNameMapper: {
// '^@/(.*)$': resolve("<rootDir>", "$1")
// },
transformIgnorePatterns: [
'<rootDir>/node_modules/(react-clone-referenced-element|@react-native-community|react-navigation|@react-navigation/.*|@unimodules/.*|native-base|react-native-code-push)',
],
}
export default jestConfig