module.exports = { moduleFileExtensions: [ 'web.js', 'ios.js', 'mobile.js', 'mjs', 'js', 'ts', 'json' ], moduleDirectories: ['/node_modules', 'node_modules'], testEnvironment: 'jsdom', setupFilesAfterEnv: ['/src/setupTests.js'], testMatch: ['/src/components/mobile/**/*.test.js'], testPathIgnorePatterns: [ '/node_modules/(?!loot-core).+\\.js$' ], moduleNameMapper: { '^react-native$': 'react-native-web', // Ignore react-art. react-native-web tries to pull it in but we // never use or need it, and it throws errors in jsdom '^react-art$': 'identity-obj-proxy', '^react-native-gesture-handler$': '/src/guide/mocks/react-native-gesture-handler.js', '^react-native-reanimated$': '/src/guide/mocks/react-native-reanimated.js' }, globals: { IS_REACT_NATIVE: true } };