anyone has any experience in mocking providers to use for your widgets in widgetbook? I wanna show my widgets in widgetbook but I cant use my actual provider in it and would want to use a mock one without having to change much in the lib folder and files. Want to be able to somehow switch to a different provider when using widgetbook in the widget defined in lib folder.
Last active a month ago
2 replies
7 views
- MA
anyone has any experience in mocking providers to use for your widgets in widgetbook?
I wanna show my widgets in widgetbook but I cant use my actual provider in it and would want to use a mock one without having to change much in the lib folder and files.
Want to be able to somehow switch to a different provider when using widgetbook in the widget defined in lib folder. - NA
I use mocktail to mock my providers and then just wrap any views that read those providers with it in widgetbook
Last active a month ago
2 replies
7 views