0.3.1 • Published 3 years ago

@loadsmart/utils-tests v0.3.1

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

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()
})
0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago