dzcode-io / dzcode.io

Website & mobile app for Algerian open-source community
https://dzcode.io
MIT License
114 stars 41 forks source link

Chore: Updating mobile test #402

Closed omdxp closed 2 years ago

omdxp commented 2 years ago

Description

This PR is addressed to fix the issue of running mobile test with errors whenever using navigations or other modules that needed to be mocked so the test procedure runs properly.

Fixes #377

Type of change

omdxp commented 2 years ago

Aha, so this is how React Native is tested, make sense as I don't see a way to capture a snapshot of native components, will definitely dive deep later on how we should test it the right way

Of course @ZibanPirate this is basically how to test the whole app if it's rendered correctly, we can also dive deeper by applying other tests for the api requests and such