Closed IanVS closed 2 years ago
I looked into this a bit, and there's no real way around it, since name
is a protected property in composedStory
, which is a function in composeStory
. But, I see that it also already converts name
into storyName
, so I can use that. I've pushed up a small PR https://github.com/storybookjs/testing-react/pull/108 to add a test for this case. But, this issue can be closed out as-is.
Describe the bug According to https://github.com/storybookjs/storybook/pull/18464#pullrequestreview-1003416977,
name
should be used for csf3 stories. However, when I runcomposeStory
fromtesting-react
, thename
changes to something likecomposedStory2
. I'd really like to have thename
remain unchanged when composing stories.To Reproduce https://github.com/IanVS/composed-story-name-reproduction
Open the
Primary Named
story, which uses theHelper.jsx
component to render a composed story as well as its name.Expected behavior The
name
of the resulting story should be the csf3 name.Screenshots