@joegesualdo/ava-react
v0.0.4
Published
Test react components with ava, no setup required.
Downloads
11
Readme
ava-react 
Test react components with ava, no setup required.
Install
$ npm install --global @joegesualdo/ava-reactUsage
$ ava-react <test-file>Setup
- You must have this
.babelrcat the root of you project:
{
"presets": [
"react",
"es2015",
'stage-0',
],
"env": {
"AVA": {
"plugins": [
[
"babel-plugin-webpack-loaders",
{
"config": "${CONFIG}",
"verbose": true
}
]
]
}
}
}- You must have this in your
package.jsonfile:
{
...
"ava": {
"require": [
"babel-register"
],
"babel": "inherit"
}
...
}Test
$ npm test
Build
$ npm run buildRelated
- example-package - Add description of the example package here.
License
MIT © undefined
