An alternative approach to testing js with mocha, chai, nock, and others!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You should hopefully know what testing is, and how annoying it is to create tests quickly.
To get your very own copy of expressoh install it in the usual way!
npm install expressoh
To add it into your project
npm install expressoh --save
OR
npm install expressoh --save-dev
From your project root, to run examples for testing facility and http
cd node_modules/expressoh
mocha
mochawesome-report-generator is used to generate an html page with test results. Browse to
expressoh/mochawesome-report/mochawesome.html
Then open a web browser with this html file to see your results.
Examples for how to write expressoh tests can be found in the examples folder...
cd node_modules/expressoh/examples
When ready to create your own, ensure you have a 'test' folder in the root of your project, and inside of it should be a file called 'mocha.opts'.
Modify this file to point to your test folder, and before running, execute
npm link
To expose the expressoh launcher binary and link it to your project root directory.
To contribute to this project, follow common standards
We use NodeJS for versioning. For the versions available, see the tags on this repository.
- Jeff Jenkins - jjenki11
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- libphonenumber-js
- validator
- mocha
- nock
- chai