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

How to choose the CSS for a component? #72

Closed
nikolay-govorov opened this issue Mar 16, 2018 · 3 comments
Closed

How to choose the CSS for a component? #72

nikolay-govorov opened this issue Mar 16, 2018 · 3 comments

Comments

@nikolay-govorov
Copy link

I want to configure testing with screenshots for vue components. To prepare a snapshot, I need to select not only HTML but also CSS from the component. How can I do that?

@eddyerburgh
Copy link
Member

eddyerburgh commented Mar 17, 2018

Hi, full CSS isn't supported yet.

Are you using a library to generate a screenshot with HTML and CSS?

@nikolay-govorov
Copy link
Author

Screenshots, not snapshots. I made one for myself. I can in HTML and CSS to create the screenshots and based on them to test the appearance of components, but I don't know how to select CSS from the vue-component

@eddyerburgh
Copy link
Member

Unless somebody else implements it, vue-jest won't support CSS. You should use vue-loader to generate screenshots

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