mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
Merge branch 'master' into release/3.3
This commit is contained in:
commit
483bb05a89
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user