@joegesualdo/ava-react

0.0.4 • Public • Published

ava-react Build Status

Test react components with ava, no setup required.

Install

$ npm install --global @joegesualdo/ava-react

Usage

$ ava-react <test-file>

Setup

  1. You must have this .babelrc at the root of you project:
{
  "presets": [
    "react",
    "es2015",
    'stage-0',
   ],
	"env": {
    "AVA": {
      "plugins": [
        [
          "babel-plugin-webpack-loaders",
          {
            "config": "${CONFIG}",
            "verbose": true
          }
        ]
      ]
    }
  }
}
  1. You must have this in your package.json file:
{
  ...
  "ava": {
    "require": [
      "babel-register"
    ],
    "babel": "inherit"
  }
  ...
}

Test

$ npm test

Build

$ npm run build

Related

License

MIT © undefined

Readme

Keywords

none

Package Sidebar

Install

npm i @joegesualdo/ava-react

Weekly Downloads

1

Version

0.0.4

License

none

Last publish

Collaborators

  • joegesualdo