grunt-template-jasmine-nml
A template for grunt-contrib-jasmine task that allows you to easily test your CommonJS style modules in the browser.
Getting Started
This plugin requires Grunt ^1.0.1
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-template-jasmine-nml --save-dev
Once the plugin has been installed, it may be used inside your Gruntfile.
Template Options
templateOptions.root
Type: String
The root path of the project. Can usually be omitted.
templateOptions.pathmap
Type: Object
A file path mapping which can be used if the sources are copied or moved before testing (see the istanbul example)
Examples
// Example configuration for running tests without extrasgrunt;
// Example configurationgrunt