Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

ngerritsen/react-stateless-wrapper

Repository files navigation

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/>)

About

Wraps React stateless components into regular components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •