Reputation: 860
I got 2 javascript files:
jquery.js
which I want to write unit test for.
jquery.test.js
which contains jasmine describes that aimed to test the jquery functionality.
Is there any way to preload the jquery.js in jquery.test.js or somewhere else so I can reference the $
symbol?
Upvotes: 0
Views: 286
Reputation: 55952
karma files
config option should have all the files loaded for when test is executed.
https://karma-runner.github.io/1.0/config/files.html
Upvotes: 1