Massive/jest.config.js
Brandon Presley cc97c760bb Give up trying to add unit tests
Running tests gives the following error:
TypeError: _reactNative.BackHandler.addEventListener is not a function
2022-10-29 17:16:28 +13:00

12 lines
330 B
JavaScript

module.exports = {
preset: 'react-native',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(jest-)?@?react-native|@react-native-community|@react-navigation)',
],
setupFiles: ['./jestSetup.ts'],
};