Answer the question
In order to leave comments, you need to log in
How to test HTML changes with Mocha?
Good afternoon, tell me please. I figured out how to test with Mocha javascript functions that return something, but how do I test functions that make some changes in the DOM tree. I can assume, based on the information I read, that you need to use JSDOM. I would be grateful for any more or less similar practical example or any information.
Answer the question
In order to leave comments, you need to log in
https://www.npmjs.com/package/mocha-jsdom
https://vadosware.io/post/testing-dom-with-mocha-p...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question