Toke Voltelen
Toke Voltelen
And i have posted the actual reason for this here (it is due to too aggressive class name filtering really): https://github.com/styled-components/jest-styled-components/issues/297#issuecomment-639362675
I also have this problem as well using react-test-renderer and the latest versions: ``` "jest-styled-components": "^7.0.2", "react-test-renderer": "16.13.1", "styled-components": "^5.1.1", ``` I have tried the various suggested solutions above, but...
So I had a look under the hood and I found out why the test were breaking. ### TL;DR - The solution for now Configure your `babel-plugin-styled-components` to use static...
I concur with @noahnu that the problem resides in the fact that not all class names are being prefixed by `sc-` (I did not make the link with the digit...
So... I had similar issue and I have already pointed out the problem in this comment https://github.com/styled-components/jest-styled-components/issues/297#issuecomment-639362675 In short the algorithm is built so that you HAVE TO have the...
I am having the same problem using Browserify and Babel along with istanbul and as far as I can see the line numbers of the coverage is off of about...
On a side note to this, it could be cool if the `mix` method could do the conversion under the hood so I don't have use `toRgb` (or similar) before...
I have the same problem but I have only encountered it with 2 modules so far. **NVM for windows** and **TSlint**. **OS**: Windows 10 **NPM**: 5.6.0
I'm still having the problem. Now with TypeScript as well. Exactly the same error as the ones above.
I have a similar use-case except a bit the other way around. I have a component that extends another component: ```ts const MyExtended = styled(MyComponent).attrs({ number: 1 })` /* styling...