I was wondering how you would test code that included querySelectAll, document.getElementByID, and so on inside JavaScript code.
I have tried using Mocha but it doesn't not work with browser-specific JS code but I have it working for just JS code. I tried JSDOM but I don't think I understand how to use it because also failed...many times.
Any advice will be greatly appreciated!
Aucun commentaire:
Enregistrer un commentaire