dzcode-io/dzcode.io

Mock navigations so the test process proceeds without error

Closed this issue · 0 comments

omdxp commented

Description
Sometimes we tend to delete some test files that contains components with used navigations inside them, and it's just so the unit testing proceeds without any errors. However, I think this should be solved by mocking the navigation files instead of deleting those test files, that way the unit testing should proceed with any error related to navigations.

Check List

  1. Mock @react-navigation
  2. Testing on components with used navigation