snapguidist
snapguidist copied to clipboard
Snapshot testing for React Styleguidist
`Snapguidist` throws an error in the browser console when we load a `React.FunctionComponent` with hooks in `React Styleguidist`. It doesn't break the compilation but throws an error onto the console....
Styleguidist 9.x.x has replaced `codemirror` with `react-simple-code-editor` due to which getting errors when using `snapguidist` with `Styleguidist 9`. ![image](https://user-images.githubusercontent.com/42495927/71505108-0c09c000-28a2-11ea-9ce0-22e74030a2a4.png)
I want to be able to test all the snapshots automatically on travis. When I run styleguidist build, it builds successfully even with invalid snapshots.
I don't know how much work it would be, but I'd love to see something like https://github.com/styled-components/jest-styled-components integrated into snapguidist, so I can actually review the diffs to class names,...
Snapguidist should ideally provide a way to filter which examples are tested, or to disable testing for specific code blocks. For example, users may not want snapguidist to run tests...