Using jQuery (with jsdom) in NodeJS (JavaScript) Questions

Re: Using jQuery (with jsdom) in NodeJS (JavaScript) Questions

de către Richard Lobb-
Număr de răspunsuri: 0
It certainly seems like a fun idea to explore. I've never used JSDOM but it looks like it would be pretty easy (rash statement!) to ask a question where the student has to provide a script (like the insertRow example) which the template then wraps in the relevant HTML and runs with JSDOM. You wouldn't be able to provide clickable buttons of course but the test cases could append scripts that simulate events, inspect the DOM etc. And much more complex questions should be possible, too.

If you have any success, would you mind eporting back here, please? I think there will be other users out there interested in this.