1.0.8 • Published 2 years ago

react-stateless-wrapper v1.0.8

Weekly downloads
109
License
ISC
Repository
gitlab
Last release
2 years 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.8

2 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago