gitlab-org--gitlab-foss/spec/frontend/__helpers__/dom_shims
2022-04-22 03:08:49 +00:00
..
clipboard.js Add latest changes from gitlab-org/gitlab@master 2022-04-22 03:08:49 +00:00
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 Add latest changes from gitlab-org/gitlab@master 2022-04-22 03:08:49 +00:00
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