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
Is your feature request related to a problem? Please describe.
I always find it annoying that when my Storybook examples grow in complexity (e.g. decorators get added) I have to go back to test files and manually add composeStories. It would be way nicer if everyone in the project would start to write tests with composeStories from the beginning.
Describe the solution you'd like
It should not be possible to do something like this:
import{composeStories}from'@storybook/react';import*asstoriesfrom'stories/components/forms/multi-select.stories';const{ Example }=composeStories(stories);test('<MultiSelect />: renders',async()=>{render(<Example/>);expect(screen.getByTestId('multi-select-status')).toBeInTheDocument();});
Describe alternatives you've considered
...
Additional context
...
The text was updated successfully, but these errors were encountered:
Hey @donaldpipowitch that's an interesting idea! It does feel a little weird though because the eslint rules for this plugin only apply to storybook-specific files e.g. *.stories.@(ts|tsx|js|jsx|mjs|cjs) and .storybook/main.@(js|cjs|mjs|ts).
Maybe the plugin could have a rule that is not applied to any file, and users would have to manually apply such rule in an overrides field, like:
Is your feature request related to a problem? Please describe.
I always find it annoying that when my Storybook examples grow in complexity (e.g. decorators get added) I have to go back to test files and manually add
composeStories
. It would be way nicer if everyone in the project would start to write tests withcomposeStories
from the beginning.Describe the solution you'd like
It should not be possible to do something like this:
Only this should be allowed:
Describe alternatives you've considered
...
Additional context
...
The text was updated successfully, but these errors were encountered: