20 lines
414 B
TypeScript
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 |