-
Notifications
You must be signed in to change notification settings - Fork 384
Add Test for CSS Modules #193
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
Comments
@alexfedoseev I'm not sure what's worth testing in terms of the CSS classes. In other words, I think only the flow of state and properties is worth testing for React at this level. The integration tests should test the overall flow. I think manual testing is needed to verify the look of the CSS. |
@justin808 @alexfedoseev I could be wrong, but I assume this test is to make sure the css-modules infrastructure itself works, but yeah it's not something we would keep writing tests for? |
@justin808 @robwise I updated test env setup on fng to work with CSS Modules: we can test them or just ignore them (thus other tests will run fine). |
@justin808 We needed to set this up mainly b/c tests can't be executed without handling css imports. So it's just to make tests work, not to test css itself. |
See: https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client%2Fapp%2Fbundles%2Fcomments%2Fcomponents%2FCommentBox%2FCommentList%2FComment%2FComment.spec.jsx#L17
The text was updated successfully, but these errors were encountered: