Skip to content
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

Test built storybooks in CI #274

Merged
merged 6 commits into from
Mar 17, 2022
Merged

Test built storybooks in CI #274

merged 6 commits into from
Mar 17, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Mar 14, 2022

So far, we've only been building our storybooks, but not doing any testing on them. This adds https://github.com/storybookjs/test-runner which will render each of the stories and smoke test them (make sure that there are no runtime errors). This is at least a step towards having more confidence that our stories aren't broken. The next step would be to actually write assertions in the stories to be sure they're rendering correctly, but that can be done another time.

@IanVS
Copy link
Member Author

IanVS commented Mar 14, 2022

The svelte stories are not being picked up correctly by the test runner. I've opened storybookjs/test-runner#80.

@IanVS
Copy link
Member Author

IanVS commented Mar 14, 2022

I had to remove the svelte example, unfortunately. It seems that @storybook/test-runner does not support svelte component stories.

@eirslett
Copy link
Collaborator

LGTM!

@IanVS IanVS merged commit 1813df5 into main Mar 17, 2022
@IanVS IanVS deleted the storybook-test-ci branch March 17, 2022 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants