Skip to content

Instantly share code, notes, and snippets.

@marcusellis05
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusellis05/eef68a940eff2dc50ec9 to your computer and use it in GitHub Desktop.
Save marcusellis05/eef68a940eff2dc50ec9 to your computer and use it in GitHub Desktop.
Issue with grunt-contrib-jasmine
"use strict";
var loadGruntTasks = require('load-grunt-tasks');
module.exports = function(grunt) {
grunt.initConfig({
connect: {
test : {
port : 8000
}
},
jasmine: {
taskName: {
src: 'src/js/*.js',
options: {
specs: 'spec/*Spec.js',
helpers: 'spec/*Helper.js',
host: 'http://127.0.0.1:8000/',
template: require('grunt-template-jasmine-requirejs'),
templateOptions: {
requireConfigFile: 'src/config.js'
}
}
}
}
});
loadGruntTasks(grunt);
grunt.registerTask('default', ['connect', 'jasmine']);
};
{
"name": "search-form",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": ""
},
"author": "",
"license": "ISC",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-connect": "^0.10.1",
"grunt-contrib-jasmine": "^0.8.2",
"grunt-template-jasmine-requirejs": "^0.2.2",
"load-grunt-tasks": "^3.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment