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
...will only show story A in the Storybook menu. The reason is that the CSF file parsing/story detection doesn't detect Story B.
To Reproduce
It's possible to reproduce this as a failing unit test, in CsfFile.test.ts:
it('function exports',()=>{expect(parse(dedent` export default { title: 'foo/bar' }; export function A() {} export function B() {} `)).toMatchInlineSnapshot(` meta: title: foo/bar id: custom-id stories: - id: foo-bar--a name: A - id: foo-bar--b name: B `);});
I tried diving into the code to fix it myself, but CsfFile.ts is quite complex to work with, and I wouldn't want to ruin anything else while working in there!
This is unfortunately a blocker at our company, before we can start using story store V7. All the stories are written as export function. Would it be possible to have a bugfix thas is backported on the 6.4 release?
The text was updated successfully, but these errors were encountered:
Describe the bug
A story file like this...
...will only show story A in the Storybook menu. The reason is that the CSF file parsing/story detection doesn't detect Story B.
To Reproduce
It's possible to reproduce this as a failing unit test, in CsfFile.test.ts:
I tried diving into the code to fix it myself, but
CsfFile.ts
is quite complex to work with, and I wouldn't want to ruin anything else while working in there!This is unfortunately a blocker at our company, before we can start using story store V7. All the stories are written as
export function
. Would it be possible to have a bugfix thas is backported on the 6.4 release?The text was updated successfully, but these errors were encountered: