aboutsummaryrefslogtreecommitdiff
path: root/setupTests.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-03-05 16:32:12 +0300
committerGravatar Vitaly Takmazov2023-03-05 16:32:12 +0300
commit79d769f3d29d1827d7744db3a26f02bc0d95d792 (patch)
tree645eef66702817b3b92cd3ce555ecb7c44717e59 /setupTests.js
parent88efdf2cde176a1f42be5183d42c34b7ad91b266 (diff)
Merge vnext build configuration
Diffstat (limited to 'setupTests.js')
-rw-r--r--setupTests.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/setupTests.js b/setupTests.js
new file mode 100644
index 00000000..5f1e97dd
--- /dev/null
+++ b/setupTests.js
@@ -0,0 +1,14 @@
+import '@testing-library/jest-dom';
+
+window.matchMedia = window.matchMedia || function() {
+ return {
+ matches: true,
+ media: '',
+ addListener: function() { return true; },
+ removeListener: function() { return true; },
+ addEventListener: function() { return true; },
+ removeEventListener: function() { return true; },
+ dispatchEvent: function() { return true; },
+ onchange: function() { return true; }
+ };
+};