robilars-amazon
robilars-amazon
The correct behavior can be seen by removing `"babel-plugin-styled-components"` from babel.config.js and re-running the test in https://repl.it/@robilarsamazon/jest-styled-components-5-and-babel-plugin-styled-components
Created PR #269 for a solution that makes all componentIds prefixed with `sc-`
Looks like https://github.com/styled-components/babel-plugin-styled-components/pull/269 was not building in CI. Created a new PR: https://github.com/styled-components/babel-plugin-styled-components/pull/276
I published out a fork of the package with the PR applied. Feel free to use this till a fix is added to master https://www.npmjs.com/package/@robilars/babel-plugin-styled-components
It was fixed on the jest-styled-components side: https://github.com/styled-components/jest-styled-components/compare/v7.0.1...v7.0.2
I also tested it. Yep you are right.