Unit tests are much easier to build than behavior tests. These tests make sure that only a section of the web application is working correctly, such as
Meteor.method or a template helper.
Unit tests make it quicker to find bugs in broken behavior tests. They should be used mostly in parts that you know can break easily, such as a publisher or a particular helper.
To run unit tests, we are going to use the
meteor add sanjo:jasmine
Now create two directories:
/jasmine/server/integration. These are the special directories where
jasmine runs tests. Let's build a quick test for the
# /tests/jasmine/client/integration/publishers/products_pub_test.coffee do -> 'use strict' ...