-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Features testing. #110
Comments
You can unit test the individual pieces if needed ( |
I'm trying to test my feature which initially uses a Bootstrapper and PostProcessor to fetch data from a remote database. This should emit the result directly after the initial state. In my test I use a fake implementation which returns fake data immediately. Are there any best practices to fix this issue? `@Test
` The rule i ues:
}` |
@THEAccess If you would test the actual value, and not just the value count, you would probably find that the single value you get is not the Feature's initial state, but the next one: the state which is the result of completing your Bootstrapper action. This is because initial state is fired upon Feature creation immediately, and Bootstrapper is also invoked immediately. By the time you subscribe to your Feature, its latest state is the one that is reflected on the receiving end (as if it was a BehaviorSubject). And, because there are no further actions to execute, no matter how long of a delay you put into place, you're not gonna get another one. I suggest you read: |
Hi guys. Do you have any examples, best practices how you tests yours features?
The text was updated successfully, but these errors were encountered: