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

Feature idea: pretty print for html() #1273

Closed
lmiller1990 opened this issue Jul 11, 2019 · 2 comments
Closed

Feature idea: pretty print for html() #1273

lmiller1990 opened this issue Jul 11, 2019 · 2 comments

Comments

@lmiller1990
Copy link
Member

Version

1.0.0-beta.29

Reproduction link

https://github.com/vuejs/test-utils

Steps to reproduce

I think it would be nice to be able to pretty-print the output of html. The API could be:

console.log(wrapper.html({ pretty: true }))

I find the html feature is super useful for debugging project that I am new to, or teaching other people about testing. At the moment we import another package to format the HTML, but it might be a nice feature to have in core.

If you think it's not necessary, just close this one off. I'd be happy to make a PR with this feature.

What is expected?

Format nicely

What is actually happening?

Not formatted nicely

@anthonygore
Copy link

Duplicate of this?

@lmiller1990
Copy link
Member Author

So it is - and looks like the idea was approved. Might look into making a PR for this!

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