You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| bin | 5 years ago | |
| src | 5 years ago | |
| .gitignore | 5 years ago | |
| README.md | 5 years ago | |
| karma.conf.js | 5 years ago | |
| package-lock.json | 5 years ago | |
| package.json | 5 years ago | |
| packagejson.old | 5 years ago | |
README.md
A simple and concise demonstration on how to use Mocha, Chai, and Karma to unit and integration test the frontend.
Prereqs
You must have Node.js installed.
Get it running
In the root directory, execute:
npm install
To start/run the tests, execute the following in the root directory:
node_modules/karma/bin/karma start
Watch
By default, Karma is configured to watch for changes, so any changes you make to the sample.js or the sampleTest.js will automatically be picked up and tests will be rerun.