These changes refactors the router store tests, where some tests in the router store are moved to integration tests and vice versa, ensuring that the test suite is better separated as unit vs integration tests.
Changes
Move sends the expected path to history integration tests to router store
Move history listen resource store interop route transition tests from the router store to integration tests, and consolidate them into two tests rather than four
Rename describe blocks and test cases as appropriate
Test the RouterContainer over Router in the router store tests
Test history v4/v5 for each test in router store, rather than a few
Use getRouterState() or a local getState over RouterStoreSubscriber to cleanup the tests
These changes refactors the router store tests, where some tests in the router store are moved to integration tests and vice versa, ensuring that the test suite is better separated as unit vs integration tests.
Changes
sends the expected path to history
integration tests to router storehistory listen resource store interop
route transition tests from the router store to integration tests, and consolidate them into two tests rather than fourRouterContainer
overRouter
in the router store testsgetRouterState()
or a localgetState
overRouterStoreSubscriber
to cleanup the tests