Files
iNaturalistReactNative/jest.setup.js
Amanda Bullington ff6789c32c Merge obs list, obs card, and user profile into main (#4)
* 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
2021-11-04 15:44:57 -07:00

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" );
// } );