Skip to content
 
 

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component Tape Util

Tape wrapper for testing React components without the boilerplate

Example

import React from 'react'
import { test, renderJsx } from 'react-component-tape-util'

import HelloWorld from './HelloWorld' // () => <h1>Hello, world!</h1>

test('component.HelloWorld', assert => {
  const expected = <h1>Hello, world!</h1>
  const actual = renderJsx(<HelloWorld />)

  // jsxEquals is now included in the assert library
  assert.jsxEquals(actual, expected, 'should render correctly')
})

About

Testing React Components without all that boilerplate

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages