jasmine-jquery icon indicating copy to clipboard operation
jasmine-jquery copied to clipboard

Testing libraries with support for jQuery 1.x

Open jesperronn opened this issue 10 years ago • 2 comments
trafficstars

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?

jesperronn avatar Oct 16 '15 14:10 jesperronn

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:

jesperronn avatar Oct 16 '15 23:10 jesperronn

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.

travisjeffery avatar Oct 17 '15 00:10 travisjeffery