I have a question about using jasmine with Grunt. I keep getting the error
ReferenceError: cannot find variable: require at
whenever I run jasmine tests. Here is my jasmine entry for my Gruntfile.js:
jasmine: { js: { src: jsFiles, options: { specs: 'tests/*_spec.js', helpers: 'tests/helpers/*', vendor: 'vendor/*' } } },
I can run a dummy test without the need for a fine, but when I include the requirement in the test, for example, I get the error I want.
var testD = require('../src/events_to_actions'); describe("events_to_actions", function() { it("is dummy test", function() { expect(true).toEqual(true); }); });
source share