Skip to content

Client Side JavaScript Testing Best Practices

Jason Swett edited this page Jan 21, 2015 · 3 revisions

Location of tests

Call the directory where your tests are located specs. Put specs at the top level of your client-side JavaScript directory. So if your client-side code is located in app/js, create a directory called app/js/specs.

Test runner

Use Karma for running your tests.

Test framework

Use Jasmine as your test framework.