mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +08:00
test(react): Add matchMedia to jest setup. (#17606)
This commit is contained in:
@ -1 +1,9 @@
|
||||
global.crypto = require('@trust/webcrypto');
|
||||
|
||||
window.matchMedia = window.matchMedia || function() {
|
||||
return {
|
||||
matches : false,
|
||||
addListener : function() {},
|
||||
removeListener: function() {}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user