react-native-default-prefer.../jest.config.js
Marcos Rodriguez Velez de95729a49 Update jest.config.js
2024-11-19 22:41:35 -04:00

18 lines
376 B
JavaScript

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
transformIgnorePatterns: [
'/node_modules/',
],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
moduleNameMapper: {
'^react-native-default-preference$': '<rootDir>/__mocks__/react-native-default-preference.js',
},
};