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