You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The need for a factory function comes from our desire to use not-mocked
production-like store in tests. Since each test may change store in
unpredicted way, we will want to create a store instance for each test
independently, hence this factory function. Otherwise, having globally
available singleton instance may introduce unpredicted test failures.
0 commit comments