gitlab-org--gitlab-foss/spec/frontend/helpers/dom_shims
2020-06-08 18:08:27 +00:00
..
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 Add latest changes from gitlab-org/gitlab@master 2020-06-08 18:08:27 +00:00
index.js Add latest changes from gitlab-org/gitlab@master 2020-05-27 12:08:19 +00:00
inner_text.js
mutation_observer.js Add latest changes from gitlab-org/gitlab@master 2020-05-27 12:08:19 +00:00
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