/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @emails oncall+react_native * @flow */'use strict';constReact=require('react');constShallowRenderer=require('react-test-renderer/shallow');constTestRenderer=require('react-test-renderer');constrenderer=newShallowRenderer();exportconstshallow=(Component:React.Element<any>):any=>{constWrapper=():React.Element<any>=>Component;returnrenderer.render(<Wrapper/>);};exportconstshallowRender=(Component:React.Element<any>):any=>{returnrenderer.render(Component);};exportconstcreate=(Component:React.Element<any>):any=>{returnTestRenderer.create(Component);};