You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to get this working on a lerna monorepo and running into some issues. I don't have a ton of experience with styled-components, jest, or lerna...so it's possible I'm overlooking something obvious.
Hello @jenniferOlsen, you need to put a ^ in the moduleNameMapper entry otherwise you are matching all the modules that contain "styled-components" (jest-styled-components included).
Hello,
I'm trying to get this working on a lerna monorepo and running into some issues. I don't have a ton of experience with styled-components, jest, or lerna...so it's possible I'm overlooking something obvious.
The snapshots run, but I don't get the css rendered. If I use
toHavestyleRule()
I getTypeError: expect(...).toHaveStyleRule is not a function
. So, it looks likejest-styled-components
is being ignored completely. I looked at the instructions at https://www.styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page, but I'm not actually getting any warnings so that may not be the issue.I've set up a minimal non-working repo, but I'll include the most relevant bits here too. I appreciate any help you can give me.
The text was updated successfully, but these errors were encountered: