Skip to content

Removed extraneous semicolons to make jest-styled-components ^4.3.0 happy #68

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

Merged
merged 2 commits into from
Aug 4, 2017

Conversation

smber1
Copy link
Contributor

@smber1 smber1 commented Aug 4, 2017

Hi Aaron, long time follower, first time committer!

I'm using jest-styled-components to enable jest snapshot testing for components using styled-components. As of 4.3.0, it seems quite pedantic about things like extraneous semicolons in the resulting stylesheet. I think the issue with the semicolons would be similar to this issue over on the jest-styled-components project.

I debugged and found that Row.js and Col.js both had a couple of extraneous semicolons that would result in styles of {;} in the final stylesheet which caused parsing issues for jest-styled-components.

PR for your consideration, thanks.

@codecov
Copy link

codecov bot commented Aug 4, 2017

Codecov Report

Merging #68 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #68   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     11           
  Lines          82     82           
  Branches       20     20           
=====================================
  Hits           82     82
Impacted Files Coverage Δ
src/components/Row/Row.js 100% <ø> (ø) ⬆️
src/components/Col/Col.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update efb94aa...d73f378. Read the comment docs.

Copy link
Owner

@aaronvanston aaronvanston left a comment

Choose a reason for hiding this comment

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

👍

@aaronvanston aaronvanston merged commit 5860c4a into aaronvanston:master Aug 4, 2017
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