1.0.9 • Published 10 months ago

react-stateless-wrapper v1.0.9

Weekly downloads
109
License
ISC
Repository
github
Last release
10 months ago

Deprecated, there are better options now, check out Enzyme

Wraps React stateless components into regular components, for unit testing purposes.

npm install react-stateless-wrapper --save-dev

Usage:

import { wrap } from 'react-stateless-wrapper'
let WrappedComponent = wrap(StatelessComponent)
TestUtils.renderIntoDocument(<WrappedComponent ...props/>)
1.0.9

10 months ago

1.0.8

3 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago