I played around with this and got it to a point where I'm not getting errors anymore. I'm not sure if it actually works though...
First, put jasmine-jquery.js
in the root folder (next to amdSpecRunner.js
).
You won't be able to load jasmine-jquery.js
with a normal <script>
tag. You have to load it with RequireJS so that you can specify it's dependency on jasmine
. That way the code in jasmine-jquery.js
won't be executed until jasmine
has been loaded.
amdSpecRunner.js
- line 19: specify it's dependency on jasmine
- line 31: load jasmine-jquery