Background: I'm currently reading "Web Development with Node and Express" by Ethan Brown (great book by the way for those learning node and express) and I got stuck on Chapter 5 - Quality Insurance.
Everything was running smooth. First I ran the following:
npm install --save-dev mocha
npm install -g mocha
npm install --save-dev chai
npm install --save-dev zombie
Problem: Then I ran (as the book instructed):
mocha -u tdd -R spec qa/tests-crosspage.js 2>/dev/null
But this wasn't doing anything. So then I ran:
mocha -u tdd -R spec qa/tests-crosspage.js
And then this error appeared:
/Users/esanz91/Desktop/CodingNotes/Node/MySite/node_modules/zombie/node_modules/jsdom/lib/jsdom/level2/html.js:405 var nonInheritedTags = new Set([
ReferenceError: Set is not defined
Versions: Just to give you guys an idea, I have the following versions installed.
cmd:
npm list --depth=0
results:
├── chai@2.2.0
├── express@4.12.3
├── express3-handlebars@0.5.2
├── mocha@2.2.4
└── zombie@4.0.7
Also, I'm running on Node 0.10.
How can I fix this issue?
Thanks!