aboutsummaryrefslogtreecommitdiff
path: root/setupTests.js
diff options
context:
space:
mode:
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; }
+ };
+};