If you are working on a complex project or a Backbone extension, you need to make sure that the new commits do not break any existing functionality. This is why many developers choose to create tests prior to or after writing new code.
When we were building our project from a template using Grunt, QUnit was included in the project, and the
test/mongodb.js file was created. Let's add a simple test to the extension we did in the previous recipe.
Perform the following steps to test an application: