@loadsmart/utils-tests
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

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

/@loadsmart/utils-tests/

    Package Sidebar

    Install

    npm i @loadsmart/utils-tests

    Weekly Downloads

    3

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    5.46 kB

    Total Files

    6

    Last publish

    Collaborators

    • felipe.asantos
    • giovannitoledo
    • douglasklein2
    • luiz.loadsmart
    • mwconceicao
    • yidi0912
    • lenoir.zamboni
    • diogomafra
    • oliver.tso
    • loadsmart-frontend
    • brennervaz
    • raittes
    • welingtonms-loadsmart
    • gutofoletto