[tests]: https://img.shields.io/circleci/project/github/shellscape/mocha-chrome.svg [tests-url]: https://circleci.com/gh/shellscape/mocha-chrome [size]: https://packagephobia.now.sh/badge?p=mocha-chrome [size-url]: https://packagephobia.now.sh/result?p=mocha-chrome [![tests][tests]][tests-url] [![size][size]][size-url] [![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com) # mocha-chrome :coffee: Run Mocha tests using headless Google Chrome ## Requirements `mocha-chrome` requires Node v8.0.0 or higher. `mocha-chrome` is a development tool, which means you can use tools like [NVM](https://github.com/creationix/nvm) and [nodenv](https://github.com/nodenv/nodenv) to manage your installed versions, and temporarily switch to v8+ to run tests on your machine. Most modern CI environments also support specifying the version of Node to run. ## Getting Started To begin, you'll need to install `mocha-chrome`: ```console $ npm install mocha-chrome --save-dev ``` Then you'll need a local npm install of mocha: ```console $ npm install mocha --save-dev ``` To run the tests, you'll need an HTML file with some basics: ```html Test
``` You can then add your tests either through an external script file or inline within a `