Resolve undefined {Route} error with snapshot tests
Closed this issue · 1 comments
Dunn-Austen commented
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.
Dunn-Austen commented
Solved by mocking out navigation.navigate with a jest function in the respective test suites