Skip to content

Instantly share code, notes, and snippets.

@danielcondemarin
Created February 18, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielcondemarin/e7af16f59e062977bded3252140a46d4 to your computer and use it in GitHub Desktop.
Save danielcondemarin/e7af16f59e062977bded3252140a46d4 to your computer and use it in GitHub Desktop.
import Adapter from 'enzyme-adapter-react-16';
import { shallow, render, mount, configure } from 'enzyme';
global.shallow = shallow;
global.render = render;
global.mount = mount;
//Fail tests on any warning
console.error = message => {
throw new Error(message);
};
configure({ adapter: new Adapter() })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment