@allsquare/react-native-image-picker
Version:
A React Native module that allows you to use native UI to select media from the device library or directly from the camera
21 lines (19 loc) • 487 B
JavaScript
// jest.config.js
const { defaults: tsjPreset } = require('ts-jest/presets');
module.exports = {
...tsjPreset,
preset: 'react-native',
transform: {
...tsjPreset.transform,
'\\.js$': '<rootDir>/node_modules/react-native/jest/preprocessor.js',
},
testPathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/node_modules/', '<rootDir>/example/'],
globals: {
'ts-jest': {
babelConfig: true,
},
},
setupFilesAfterEnv: [
'<rootDir>/jest.setup.js',
],
};