diff --git a/react/jest.setup.js b/react/jest.setup.js index 23b59855ee5..b0780a0cc91 100644 --- a/react/jest.setup.js +++ b/react/jest.setup.js @@ -1 +1,9 @@ global.crypto = require('@trust/webcrypto'); + +window.matchMedia = window.matchMedia || function() { + return { + matches : false, + addListener : function() {}, + removeListener: function() {} + }; +};