Refactor tests to use minimum viable test factories (#681)

* Make minimum viable RemoteComment

* Minimum vialbe RemoteIdentification

* Minimum viable remote project, place, and messages

* Create minimum viable records for all remote factories

* Remove factories for local device data

* Minimum viable local taxon, comment, id

* Minimum viable for local observation photo (photo has no primary key)

* Minimum viable LocalUser

* Minimum viable record for LocalObservation
This commit is contained in:
Amanda Bullington
2023-06-27 17:06:01 -07:00
committed by GitHub
parent d58415dd27
commit 9c6106f5d0
51 changed files with 502 additions and 277 deletions

View File

@@ -95,9 +95,9 @@ Run `npm run e2e:build:android && npm run e2e:test:android` to build the .apk fo
1. Run `node src/i18n/i18ncli.js build` to build the JSON files i18next needs to access text in the app
1. In a commponent, use the `useTranslation` hook to reference your new string, e.g.
```jsx
import { useTranslation } from "react-i18next";
import { useTranslation } from "sharedHooks";
const MyComponent = ( ) => {
const { t } = useTranslation();
const { t } = useTranslation( );
return (
<View>
<Text>{ t( "ABOUT-PROJECTS" ) }</Text>