Minimal example of loading a web page into jsdom and testing with Mocha
Execute spec-runner.sh.command or enter the terminal commands:
$ git clone https://github.com/dna-dom/load-web-page-jsdom-mocha
$ cd load-web-page-jsdom-mocha
$ npm install
$ npm test #runs "mocha spec"For development testing, set the url variable in spec.js to your local web server, such as:
http://localhost:8080
For a Puppeteer version, check out:
load-web-page-puppeteer-mocha

