Allow option to disable interaction tests when rendering stories in a production enviornment #25979
lalitIrdeto
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
We want to simply render our components on a production website. The problem is the interaction tests are mixed up with the base rendering of the component. There may arise a situation where you just want to host your Stories with the component only being rendered. This is useful when you only want to showcase the component and allow the user to experiment with it manually. But if you have interaction tests it also renders those stories as well (along with the interactions you set for them) which to a non-technical user may appear confusing.
Describe the solution you'd like
If there was a way for this to be disabled either in the environment of your choice or by default on production, then that would be great.
Describe alternatives you've considered
If this is not possible, then allow us to add conditional entries to the
includeStoriesandexcludeStoriesoptions belonging to themetaobject we define before each story. Adding conditional statements likeexcludeStories: process.env.NODE_ENV === 'production' ? [...your list of interaction stories']: [ ]doesn't seem to work.Are you able to assist to bring the feature to reality?
yes
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions