## Motivation
When pressing back in a StackNavigator nested inside the SwitchRouter, the screen would get popped, but the routeKeyHistory of the SwitchRouter gets popped even though the SwitchRouter doesn't handle the back action. This results in the next back action skipping the last opened tab.
## Fix
Before popping the `routeKeyHistory` stack, we check that the history actually changed. I also added a test for this
* Update "@react-native-community/bob" dependency to the latest version
This commit fixes the bug with not possible to install "@react-navigation/core" using GitHub repo url on Windows. It's a common use case when you work with fork of this original repo and use its url as dependency in your package.json.
Corresponding commit in "@react-native-community/bob"
88c879c83f (diff-e5d6ed39d4bcfdb44ace83a35d62c1a5).
It was released in v0.4.1
* Update yarn.lock file with new "@react-native-community/bob" dependency version
* add test:dev for dev test workflow, which should rather not lint/build and trigger pretest
* refactor tests to use closure based helper instead of class
* refactor SwitchRouter tests with router stateful helpers to improve tests readability
* simplify matcher
* better initialRoute backBehavior test by using a non-default routeName
* minor fix
* Update src/routers/__tests__/routerTestHelper.js
Co-Authored-By: slorber <slorber@users.noreply.github.com>
* Update src/routers/__tests__/routerTestHelper.js
Co-Authored-By: slorber <slorber@users.noreply.github.com>
* Update src/routers/__tests__/routerTestHelper.js
Co-Authored-By: slorber <slorber@users.noreply.github.com>
* revert bad merge stuff
* revert bad merge stuff
* fix tests