Merge branch 'master' into release/3.3

This commit is contained in:
Filipp Riabchun 2017-11-21 03:54:27 +03:00 committed by GitHub
commit 483bb05a89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,3 +8,15 @@ import Adapter from 'enzyme-adapter-react-16';
global.console.info = jest.fn().mockImplementation(() => {});
configure({ adapter: new Adapter() });
/* Fail tests on PropType warnings
This allows us to throw an error in tests environments when there are prop-type warnings. This should keep the tests
free of warnings going forward.
*/
const throwError = message => {
throw new Error(message);
};
global.console.error = throwError;
global.console.warn = throwError;