code: function getContextFromWrappingComponent(wrapper, adapter) {
    const rootFinder = deepRender(wrapper, wrapper[ROOT_FINDER], adapter);
    if (!rootFinder) {
      throw new Error('`wrappingComponent` must render its children!');
    }
    return {
      legacyContext: rootFinder[OPTIONS].context,
      providerValues: rootFinder[PROVIDER_VALUES],
    };
  }
docs: Deep-renders the `wrappingComponent` and returns the context that should
  be accessible to the primary wrapper.
  
  @param {WrappingComponentWrapper} wrapper The `WrappingComponentWrapper` for a
  `wrappingComponent`
  @param {Adapter} adapter An Enzyme adapter
  @returns {object} An object containing an object of legacy context values and a Map of
  `createContext()` Provider values.