jasmine-contrib / grunt-jasmine-node

Grunt task for running jasmine-node
MIT License
67 stars 99 forks source link

Parameters in grunt config file not passed to jasmine-node #40

Open sonicoder86 opened 10 years ago

sonicoder86 commented 10 years ago

I use RequireJs in jasmine-node and i get the following error when upgrading from 0.1 to 0.2: [ReferenceError: requirejs is not defined] Because the parameters in the Grunt config file are not passed, the retrieving of the config parameters is somehow broken (var options = this.options({ ... }))

sonicoder86 commented 10 years ago

markup of grunt config changed, but found no entries about it in the changes log

sonicoder86 commented 10 years ago

old config: jasmine_node: { specFolders: ['tests/minesweeper/model'], projectRoot: "web/js/minesweeper", requirejs: "tests/lib/requireconfig/node.js" },

sonicoder86 commented 10 years ago

new config jasmine_node: { options: { specFolders: ['tests/minesweeper/model'], projectRoot: "web/js/minesweeper", requirejs: "tests/lib/requireconfig/node.js" }, all: ['tests/minesweeper/model'] },