-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Creevey support the storiesOf
syntax?
#170
Comments
Hi. Creevey supports storiesOf API. But if it doesn't work, I think the issue in a your DSL, and Creevey doesn't understand it. Creevey transforms source code to be able load it into node js and grab stories meta from storybook api. I'm going to implement another approach, where Creevey doesn't need to transform source files. I hope, I can make PoC in August. |
That's good to know. As of now, I think we won't be able to use the tool, as it seems to be pretty finackey. I attempted to use it with our stories which use "out of the box" Even this simple example did not build:
We are using Angular 12 and Storybook 6.3. If you're able to make a release which doesn't depend on building the story files, but can instead interact with Storybook independently of the source files, that would be terrific! Hot reloads (automatically removing / adding stories as you are using the tool) isn't as important as the ability to catch visual regressions. You've done fantastic work - If there's any way a newb can help, let me know. |
Error output from that very simple example:
|
@bryanrideshark, oh looks like my latest stories transformation doesn't work in angular, I'll take a look. Thanks for the report. And if you are using webpack to build storybook, you can define 'useWebpackToExtractTests' flag in creevey config. It switch to fallback mode for extracting stories meta. |
I've been trying to get this to work on our project (Storybook 6.3, Angular) and while I can run the Creevey UI, no stories are appearing.
Does Creevey work on storybook files which are defined using
storiesOf
, as opposed to theexport default
export const
syntax?We have developed our own DSL to simplify the definition of stories, and it uses
storiesOf
under the hood.The text was updated successfully, but these errors were encountered: