The current options for unit testing are:
public
in nodeCurrently, there is no way to run unit tests directly on node, but... A better approach is in the works. 🚧
For integration testing in the browser, there are no additional steps required.
This simple function will load all your files that are ending with the -test
suffix (user-view-test.coffee
etc).
require.list()
.filter(name => /-test$/.test(name))
.forEach(require);