import * as React from 'react' ; import { render } from 'react-testing-library' ; import ThemeProvider from '../../ThemeProvider' ; export default ( Component , { theme = { } } = { } ) => render ( < ThemeProvider theme = { theme } > { Component } < /ThemeProvider>);