tape-jsx-extensions
Tape extensions collection to make React component easier to test.
Install
$ npm install --save-dev extend-tape
$ npm install --save-dev tape-jsx-extensions
How to use
Testing React components is very easy with tape
+ tape-jsx-extensions
:
const MyComponent = { const className = `box color-`; return <div className=className></div> ;};
;;;;; // extend tape with jsx extensions:const test = ; ;
Assert methods
Run tests
$ npm install
$ npm test