Open
Description
Using the new @starting-style css feature in styled-components crashes jest:
Error: :1:1329: missing '}'
at error (project/node_modules/@adobe/css-tools/dist/src/parse/index.ts:79:17)
at declarations (project/node_modules/@adobe/css-tools/dist/src/parse/index.ts:350:14)
at rule (project/node_modules/@adobe/css-tools/dist/src/parse/index.ts:764:21)
at rules (project/node_modules/@adobe/css-tools/dist/src/parse/index.ts:134:71)
at stylesheet (project/node_modules/@adobe/css-tools/dist/src/parse/index.ts:98:23)
at Object.$b499486c7f02abe7$export$98e6a39c04603d36 (project/node_modules/@adobe/css-tools/dist/src/parse/index.ts:768:20)
at getCSS (project/node_modules/jest-styled-components/src/utils.js:42:26)
I created prs to fix the issue in several repositories:
- add support for @starting-style rrweb-io/CSSOM#1
- Feature/nested starting style rrweb-io/CSSOM#4
- add support @container and @starting-style to CSSOM jsdom/jsdom#3707
- feat: add support for @container and @starting-style jestjs/jest#15089
- add support for @starting-style adobe/css-tools#319
- fix: Support @starting-style testing-library/jest-dom#602
- add support for @starting-style #446
Could you please take a look at the last one for jest-styled-components #446
Metadata
Metadata
Assignees
Labels
No labels