Don't override existing toHaveLength matcher
The `toHaveLength` matcher in `custom-jquery-matchers` doesn't work as expected for generic Array-like objects with a `length` property, whereas Jest's version does. The reason is that the former wraps the value with jQuery, which only correctly wraps _some_ Array-like objects, like true arrays, `jQuery instances, `NodeList`s and `HTMLCollection`s. As such, Jest's version is more widely useful, and is otherwise equivalent, so it should be used instead.
Showing
Please register or sign in to comment