-
Notifications
You must be signed in to change notification settings - Fork 403
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
🚀[FEATURE]: Add test helper for @Select #533
Comments
I agree that this is very much needed. |
Is there a way to mock @select options in an angular component with mock store? I don't see much documentation around this anywhere. |
This problem is now considered here: ngxs-labs/testing#4 |
We have deprecated the select decorator since it has issues with the |
Feature Request
When I am unit testing my components that use a store, I often just want to mock the store to check whether the right dispatch methods were called.
However when the component contains @select you'll get a errors like:
Now we can use ugly hacks like the following to get rid of the errors:
But it would be nicer if we have the ability to have some helpers to mock the selects, or let the SelectFactory be mockable somehow.
See also: #482
The text was updated successfully, but these errors were encountered: