jasmine-jquery
jasmine-jquery copied to clipboard
Testing libraries with support for jQuery 1.x
From 'dependencies section':
jasmine-jquery is tested with jQuery 2.0 on IE, FF, Chrome, and Safari. There is a high chance it will work with older versions and other browsers as well, but I don't typically run test suite against them when adding new features.
And the change that enforces it in #192: https://github.com/velesin/jasmine-jquery/pull/192#discussion-diff-42247044
Now, for another library which runs multiple browser test, this could be a problem and affect browser support. One example project where I saw it: https://github.com/corejavascript/typeahead.js/
In Typeahead.js, the JQuery dependency is 1.7:
https://github.com/corejavascript/typeahead.js/blob/master/bower.json#L9
Is there a simple way, where projects can use bower and get the correct versions to match dependencies?
What would be the correct version of jasmine-query to match JQuery 1.7?
Oh and one more thing: What about compatibility with jasmine 2 if using jasmine-query 1.7 to preserve compatibility with jquery 1?
I am not sure I can figure this out without your help :+1:
Hey there, jasmine-jquery 1.x works with jQuery 1.x and Jasmine 1.x. And jasmine-jquery 2.x works with jQuery 2.x and Jasmine 2.x. Adding backwards compatibility with jQuery 1.x in the current version might be possible.