Use jsdom rather than node-jsdom
See original GitHub issueI noticed that the tools depend on node-jsdom
not jsdom
and I’m guessing that the reason was because jsdom
chased io.js
. Given that they have converged I don’t see any need for node-jsdom
to be used and that the original can be swapped back in.
In my (simple) testing it seems to work just fine, although I haven’t tried from the WebIDE, only the cli tools.
The reason that I’d like to see it switch back to just jsdom
is that node-jsdom
depends on contextify
which is a real pain to get working smoothly on Windows, but has now been merged into node.js core so isn’t required.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Testing with Node, Jest, and JSDOM - Manning Publications
In this article, you'll learn how to use Node and Jest to test code ... To be able to run your tests in...
Read more >Node.js dom apis - jsdom, cheerio - can I use JS commands or ...
Is there any dom api for node.js in which I can use simply JS commands? I would like to avoid using jQuery cause...
Read more >Frontend testing in Node with jsdom | oliverjam.es
The code examples will assume you're using Node 18 and writing ES Modules rather than CommonJS (i.e. using import/export , not require )....
Read more >LinkeDOM: A JSDOM Alternative - Andrea Giammarchi
We use JSDOM to test/cover a lot of code, and with small chunks of HTML, ... the living DOM standard specification page instead,...
Read more >node-jsdom | Yarn - Package Manager
node-jsdom. First a note from the original jsdom project... The jsdom 3.x series is the last release of jsdom that works with Node.js,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually I just managed to rip out jquery and jsdom. Not actually too painful: https://github.com/espruino/EspruinoTools/commit/f2ae108e4e1193ddab5878e5229dd7d156f29a84
I’ll update my project to give this a crack 😀