gitlab-org--gitlab-foss/spec/frontend/__helpers__/dom_shims
2022-10-05 06:08:05 +00:00
..
clipboard.js
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
text_encoder.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