Emotion.js test coverage with Jest in React app

204 Views Asked by At

we decided to add Emotion in an existed project where we have a rule that we need to have 90% tests coverage for all components.

But when we created a few components with @emotion/styled, we see that this affect our coverage because now we have uncovered returns statements in styled components: enter image description here

Is there any way to properly add tests for these @emotion/styled components without checking and listing all CSS properties?

0

There are 0 best solutions below