sertmer/GlobeTrotter

Resolve undefined {Route} error with snapshot tests

Closed this issue · 1 comments

For various (now deleted) snapshot tests, route.params returns an undefined error in situations where props data has been passed as a second argument in the navigation.navigate() clause.

Next steps involve researching the issue and implementing workarounds.

Solved by mocking out navigation.navigate with a jest function in the respective test suites