You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Handling the conditional in a constconstexcludeStories=isVisualTestingMode ? ['SecondaryButton','PlayButton'] : [];exportdefault{title: 'Atoms/Button',component: Button,excludeStories: excludeStories};
However I did manage to get a very odd solution to work (see below) this leads me to believe there is some issue with how the default export handles conditionals?
Something like this would be really useful in my case too, where I'd like certain stories to be captured by Chromatic but not present in the sidebar 👍🏻
Describe the bug
I am trying to use an environment variable to change the
excludedStories
property in the default export. But it causes the story to fail to build.The following solutions do not work.
However I did manage to get a very odd solution to work (see below) this leads me to believe there is some issue with how the default export handles conditionals?
The text was updated successfully, but these errors were encountered: