renate

0.0.0 • Public • Published

renate

React Native Tester

renate is a heavily opiniated set of tools already configured to test React Native applications and components in an almost real environment without needing to have dozens of dependencies nor need to configure all them yourself.

The environment provided allow to do a real mount() of your components using react-native-mock-render and jsdom, so React Native components lifecycle will behave as in a real environment. It has also already configured enzyme to easily test your components with jest and take snapshots of their current state using, lint your code using eslint with support for latest EcmaScript features, and automatically upload code coverage statistics to coveralls. What a piece of cake, isn't it? :-D

Installation

Install renate as a devDependency by executing in your shell

npm install --save-dev renate

After that, add the next scripts configuration to your project package.json

{
  "scripts": {
    "lint": "renate-lint",
    "pretest": "npm run lint",
    "test": "renate-test"
  }
}

This way code linting will be executed automatically before running your tests. Upload of code coverage statistics will be done automatically if tests are being executed in a CI server and they are passing.

P.D.:

The cake is a lie

Dependents (0)

Package Sidebar

Install

npm i renate

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • piranna