Skip to content

Instantly share code, notes, and snippets.

taiiiraaa

  • 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
taiiiraaa / test_with_nightmare_js.md
Last active Mar 3, 2018
Automated browser testing with Nightmare, Mocha and Chai
View test_with_nightmare_js.md

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.