Skip to content

Simple to understand examples to clientside testing with Mocha, Chai, Sinon, and Karma.

Notifications You must be signed in to change notification settings

lewisdawson/clientside-testing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple to understand examples to clientside testing with Mocha, Chai, Sinon, and Karma.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published