question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use jsdom rather than node-jsdom

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gfwilliamscommented, Mar 10, 2016

Actually I just managed to rip out jquery and jsdom. Not actually too painful: https://github.com/espruino/EspruinoTools/commit/f2ae108e4e1193ddab5878e5229dd7d156f29a84

0reactions
aaronpowellcommented, Mar 14, 2016

I’ll update my project to give this a crack 😀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found