This commit is contained in:
Overtorment 2019-07-21 17:40:25 +01:00
parent 5485f14ce3
commit b5c83eb115

View File

@ -25,6 +25,16 @@ jest.mock('Picker', () => {
}
};
});
jest.mock('amplitude-js', () => ({
getInstance: function() {
return {
init: jest.fn(),
logEvent: jest.fn(),
};
},
}));
jest.mock('ScrollView', () => {
const RealComponent = require.requireActual('ScrollView');
const React = require('React');