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 872cfc8 commit f66ad25Copy full SHA for f66ad25
src/utils/deprecationLog.spec.js
@@ -2,6 +2,8 @@ import deprecationLog from './deprecationLog';
2
3
const cachedConsoleWarn = global.console.warn;
4
5
+jest.unmock('./deprecationLog');
6
+
7
describe('deprecationLog', () => {
8
beforeEach(() => {
9
global.console.warn = jest.fn();
test/jest-setup.js
@@ -1,6 +1,8 @@
1
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
+jest.mock('../src/utils/deprecationLog');
Enzyme.configure({ adapter: new Adapter() });
// Prevent `eyes.it` to initialize itself
0 commit comments