react-component-tape-util
A tape wrapper for testing React components.
This package ties together react-addons-test-utils
and tape-jsx-equals
for your React testing. The default export is Tape with jsxEquals()
added to the test object. The renderJsx
export is a function that will render JSX components that can then
be checked with the jsxEquals
test.
npm install react-component-tape-util
Usage
const HelloWorld = <h1>Hello world!</h1>