@loadsmart/utils-tests
v0.3.1
Published
useful functions for tests
Downloads
1
Maintainers
Keywords
Readme
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()
})