aboutsummaryrefslogtreecommitdiff
path: root/vnext/setupTests.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/setupTests.js')
-rw-r--r--vnext/setupTests.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/vnext/setupTests.js b/vnext/setupTests.js
new file mode 100644
index 00000000..b6aaf949
--- /dev/null
+++ b/vnext/setupTests.js
@@ -0,0 +1,14 @@
+import '@testing-library/jest-dom';
+
+window.matchMedia = window.matchMedia || function() {
+ return {
+ matches: true,
+ media: '',
+ addListener: function() { },
+ removeListener: function() { },
+ addEventListener: function() { },
+ removeEventListener: function() { },
+ dispatchEvent: function() { return true; },
+ onchange: function() { }
+ };
+};