googlemaps / googlemaps/react-wrapper
How to mock <Wrapper /> ?
Ouverte
type: question
- Langage dominant
- TypeScript
- Étoiles
- 381
- Forks
- 50
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hey,
I am completely lost on unit testing using Jest.
Basically, does anyone know how to mock in order to render child component in unit tests?
```
const MyApp = () => (
);
```
The thing is, always have Status of loading, and it never goes to Success, so the child component is never rendered. Is there a way to mock that Status to Success?
I'm using jest, and react-testing-library.
Thank you.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.