Closed oliver-heeger closed 1 year ago
If you have a named Export in a CSF Story, tests will fail, even if it is excluded with excludeStories: /.*Props$/:
excludeStories: /.*Props$/
export const PrimaryProps: ButtonType = { size: 'medium', variant: 'primary', text: 'my happy primary button', } export const Primary = Template.bind({}) Primary.args = PrimaryProps
Error: Cannot compose story due to invalid format. @storybook/testing-vue expected a function but received object instead.
https://storybook.js.org/docs/react/api/csf#non-story-exports
Hey there, this is now supported in version 1.0.0 of this package. Keep in mind that it requires Storybook 7.0.0!
If you have a named Export in a CSF Story, tests will fail, even if it is excluded with
excludeStories: /.*Props$/
:Error: Cannot compose story due to invalid format. @storybook/testing-vue expected a function but received object instead.
https://storybook.js.org/docs/react/api/csf#non-story-exports