Skip to content

Commit

Permalink
test(react): Add matchMedia to jest setup. (#17606)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthoms1 committed Feb 25, 2019
1 parent 621c79b commit ceaef7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions react/jest.setup.js
@@ -1 +1,9 @@
global.crypto = require('@trust/webcrypto');

window.matchMedia = window.matchMedia || function() {
return {
matches : false,
addListener : function() {},
removeListener: function() {}
};
};

0 comments on commit ceaef7e

Please sign in to comment.