UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

13 lines 484 B
import React from 'react'; import { mount as enzymeMount } from 'enzyme'; import { StyleProvider } from '../style-provider'; import { ThemeProvider } from '../theme-provider'; import { styleRenderer } from '../style-renderer'; import volvoTheme from '../themes/volvo'; export default function mount(component) { return enzymeMount(React.createElement(StyleProvider, { renderer: styleRenderer() }, React.createElement(ThemeProvider, { theme: volvoTheme }, component))); }