We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f9ff5e commit c6c5f23Copy full SHA for c6c5f23
packages/adaptive-ui/.mocha-jsdom.js
@@ -0,0 +1,7 @@
1
+// Fill in some gaps required by fast-element for testing in JSDOM
2
+
3
+import "jsdom-global/register.js";
4
5
+global.MutationObserver = window.MutationObserver;
6
7
+window.matchMedia = function() {}
packages/adaptive-ui/.mocharc.json
@@ -4,6 +4,6 @@
"timeout": 5000,
"spec": "dist/**/*.spec.js",
"require": [
- "jsdom-global/register"
+ "./.mocha-jsdom.js"
8
]
9
}
0 commit comments