casey-chow/tigertrade

View on GitHub
client/config/testing.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

// Stub out console.log
// console.log = function () {};
// console.error = function() {};
Object.defineProperty(window, "matchMedia", {
  value: jest.fn(() => ({
    addListener: () => {},
    removeListener: () => {},
    matches: true,
  })),
});