Skip to content

Instantly share code, notes, and snippets.


  • London
Block or report user

Report or block taiiiraaa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
taiiiraaa /
Last active Mar 3, 2018
Automated browser testing with Nightmare, Mocha and Chai

Nightmare is a browser automation library for Node.js. I used it with Mocha and Chai to create BDD style tests.

Check to make sure Node.js installed. Update to the latest LTS version if you can node -v.

Use npm to install the dependencies and add it to package.json. If package.json doesn't exist, run npm init first.

npm install mocha --save-dev
npm install chai --save-dev
npm install mocha-generators --save-dev
You can’t perform that action at this time.