@loadsmart/utils-tests

useful functions for tests

Usage no npm install needed!

<script type="module">
  import loadsmartUtilsTests from 'https://cdn.skypack.dev/@loadsmart/utils-tests';
</script>

README

BundlePhobia BundlePhobia

tests

useful functions for tests

Install via NPM

$ npm i @loadsmart/utils-tests --save-dev

Install via yarn

$ yarn add -D @loadsmart/utils-tests

Usage

import * as React from 'react'
import styled from 'styled-components'
import { renderer } from '@loadsmart/utils-tests'

test('test a component', () => {
  const { container } = renderer(<MyComponent />)
    .withTheme(myTheme)
    .withRouter()
    .render()
})