mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
* Obs detail screen skeleton; move safe area view to wrapper component * Progress on obs detail * Get ids and photos from api v2 * Fetch data needed for data tab in obs detail * Create basic map for data tab, centered on lat/long * Create linked realms for photos and identifications; access these on obs detail screen * User Profile and more setup for test suite * Delete coverage directory * Add Jest coverage folder to gitignore * Keep trying to mock out fetch for inatjs in ObsList.test.js * Rename ObsList.test to match component name
15 lines
518 B
JavaScript
15 lines
518 B
JavaScript
import "react-native-gesture-handler/jestSetup";
|
|
|
|
require( "jest-fetch-mock" ).enableMocks( );
|
|
|
|
// this resolves error with importing file after Jest environment is torn down
|
|
// https://github.com/react-navigation/react-navigation/issues/9568#issuecomment-881943770
|
|
jest.mock( "@react-navigation/native/lib/commonjs/useLinking.native", ( ) => ( {
|
|
default: ( ) => ( {getInitialState: {then: jest.fn()}} ),
|
|
__esModule: true
|
|
} ) );
|
|
|
|
// jest.mock( "realm", ( ) => {
|
|
// return require( "./__mocks__/realm" );
|
|
// } );
|