Skip to content

Conversation

@ikalnytskyi
Copy link
Member

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.

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.
@lotrien lotrien merged commit f76dfdb into master Jan 4, 2018
@lotrien lotrien deleted the store-factory branch January 4, 2018 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants