Paul Nikonowicz
Paul Nikonowicz

Reputation: 3903

Jasmine undefined with require.js

I'm basically following this tutorial: http://kilon.org/blog/2012/08/testing-backbone-requirejs-applications-with-jasmine/ and my SpecRunner.js looks just like this: https://github.com/uzikilon/Todos/blob/master/test/jasmine/SpecRunner.js

My problem is, on line 40, jasmine is undefined! The .js files are loading and being found correctly but for some reason the library is not being linked to my require function. Any ideas as to why? Backbone, underscore, and jquery load just fine. But jasmine does not. :/

Upvotes: 0

Views: 262

Answers (1)

Paul Nikonowicz
Paul Nikonowicz

Reputation: 3903

sigh I was using jasmine rc-2.0.0 which uses JasmineRequire. JasmineRequire is a AMD api and will not work (currently) with require.js. I hope this helps someone in the future.

Upvotes: 1

Related Questions