message: Update enzyme render setup to deal with context
diff: @@ -6,7 +6,6 @@ import Adapter from 'enzyme-adapter-react-16';
  import { createSerializer } from 'jest-emotion';
  import { axe, toHaveNoViolations } from 'jest-axe';
  import { create } from 'react-test-renderer';
  -import * as emotion from 'emotion';
  import { ThemeProvider } from 'emotion-theming';
  import { circuit } from './src/themes';
  @@ -16,28 +15,10 @@ Enzyme.configure({ adapter: new Adapter() });
  const renderWithTheme = renderFn => (component, ...rest) =>
  renderFn(<ThemeProvider theme={circuit}>{component}</ThemeProvider>, rest);
  -const shallowWithTheme = tree => {
  - const context = shallow(<ThemeProvider theme={circuit} />)
  - .instance()
  - .getChildContext();
  - return shallow(tree, { context });
  -};
  -
  -const mountWithTheme = tree => {
  - const context = shallow(<ThemeProvider theme={circuit} />)
  - .instance()
  - .getChildContext();
  -
  - return mount(tree, {
  - context,
  - childContextTypes: ThemeProvider.childContextTypes
  - });
  -};
  -
  -global.shallow = shallowWithTheme;
  +global.shallow = renderWithTheme(shallow);
  global.render = renderWithTheme(render);
  global.create = renderWithTheme(create);
  -global.mount = mountWithTheme;
  +global.mount = renderWithTheme(mount);
  global.renderToHtml = renderWithTheme(renderToStaticMarkup);
  global.axe = axe;
  @@ -50,7 +31,7 @@ expect.extend(toHaveNoViolations);
  // Add a snapshot serializer that removes random hashes
  // from emotion class names.
  expect.addSnapshotSerializer(
  - createSerializer(emotion, {
  + createSerializer({
  classNameReplacer(className, index) {
  return `circuit-${index}`;
  }
  