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

Refactor teaser snapshots #320

Merged
merged 3 commits into from
Jun 3, 2019
Merged

Conversation

i-like-robots
Copy link
Contributor

This refactor demonstrates how to separate a component from the automatic snapshot tests and implement component-level snapshot tests. This helps to uncouple us from the configuration based stories as discussed in #274.

  • Abstracts data out of the teaser component story configuration into separate files which can be directly consumed by test files.
  • Re-names the stories folder to storybook to prevent it being found by the automated test setup.

@i-like-robots i-like-robots added the housekeeping Cleaning things up label Jun 3, 2019
});
});
});
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm being quite lazy here by not writing some actual tests but this does preserve the same level of testing as we have with the automated snapshot generation.

@i-like-robots i-like-robots changed the base branch from matth/use-src-in-storybook to master June 3, 2019 16:37
@i-like-robots i-like-robots merged commit 4c85dfa into master Jun 3, 2019
@i-like-robots i-like-robots deleted the matth/refactor-teaser-snapshots branch June 3, 2019 16:41
rowanbeentje pushed a commit that referenced this pull request Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Cleaning things up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants