summaryrefslogtreecommitdiff
path: root/spec/frontend/__helpers__/dom_shims/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/__helpers__/dom_shims/README.md')
-rw-r--r--spec/frontend/__helpers__/dom_shims/README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/frontend/__helpers__/dom_shims/README.md b/spec/frontend/__helpers__/dom_shims/README.md
new file mode 100644
index 00000000000..1105e4b0c4c
--- /dev/null
+++ b/spec/frontend/__helpers__/dom_shims/README.md
@@ -0,0 +1,12 @@
+## 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
+
+- https://gitlab.com/gitlab-org/gitlab/merge_requests/17906#note_224448120