angular-redux / store

Angular 2+ bindings for Redux
MIT License
1.34k stars 202 forks source link

Storybook stories with @select #551

Closed westandy-dcp closed 5 years ago

westandy-dcp commented 5 years ago

This is a Feature Request

What toolchain are you using for transpilation/bundling?

Storybook

Environment

NodeJS Version: 8.12.0 Typescript Version: 3.0.3 Angular Version: 7.0.0 @angular-redux/store version: 9.0.0 @angular/cli version: (if applicable) 7.1.3 OS: Mac OSX

Additional Notes:

Using Angular and Storybook has worked out well so far. However, I have cases where my component is dependent upon @select(). How can I tell the component in my story to use a mocked observable or data point?

westandy-dcp commented 5 years ago

I added my question to StackOverflow... hopefully a solution exists? https://stackoverflow.com/questions/54317880/testing-angular-with-angular-redux-store-in-storybook

westandy-dcp commented 5 years ago

I figured out a solution. Check out the SO link ^^^^^^^