Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V7's toHaveStyleRule don't work with styled-componentsV5 #389

Closed
pkhodaveissi opened this issue Sep 10, 2021 · 1 comment
Closed

V7's toHaveStyleRule don't work with styled-componentsV5 #389

pkhodaveissi opened this issue Sep 10, 2021 · 1 comment

Comments

@pkhodaveissi
Copy link

For context:
#294

what does this line do?
const isStyledClass = (className) => /^(\w+(-|_))?sc-/.test(className);
and why it's necessary to have it in. this function
hasClassNames

I like to submit a PR to fix this so It'll be a great help if you could explain this to me.

@cdbenj
Copy link

cdbenj commented Jan 17, 2022

I was wondering the same thing too. In my case, our components have a different namespace which gets overlooked by toHaveStyleRule

@pkhodaveissi pkhodaveissi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants