gitlab-org--gitlab-foss/spec/frontend/helpers/dom_shims
..
create_object_url.js
element_scroll_by.js
element_scroll_into_view.js
element_scroll_to.js
form_element.js
get_client_rects.js
get_client_rects_spec.js
image_element_properties.js
index.js
inner_text.js
range.js
README.md
scroll_by.js
size_properties.js
window_scroll_to.js

Jest DOM shims

This is where we shim parts of JSDom. It is imported in our root test_setup.js.

Why do we need this?

Since JSDom mocks a real DOM environment (which is a good thing), it unfortunately does not support some jQuery matchers.

References