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
Unclear how to use with Node #1
Comments
This is designed for a browser environment. How would you propose rendering in a node environment? What would the document be? |
It might be worth adding some details that this project is in fact designed for a browser environment. In Node we sometimes use JSDOM and jsdom-global to play around with the |
This would work if you had JSDOM since I use it wil JSDOM. Are you saying it doesn't work with JSDOM? |
I'm saying you should add a note that the tool expects a browser environment, and that people can use JSDOM or headless Chrome to accomplish that task. It might save someone time in the future. |
@marcysutton a Pull Request would be much appreciated 😄 |
In environments where there is no
document
object (like in Node.js), this utility doesn't work by itself. You have to specify a document somehow, so it would be good to tell people how to do that. It would be super useful for asserting strings of HTML are output correctly using Node.js as a simple build and test pipeline.The text was updated successfully, but these errors were encountered: