generator-rn-toolbox-gv
Version:
React-Native generators to kickstart your project
14 lines (9 loc) • 540 B
Markdown
# Jest setup
*Unit tests are an essential part of developping a robust application. Jest is the ideal unit test tool for React Native.*
Jest now comes bundled with React Native but this generator will setup a few extra tools.
Use `yo rn-toolbox-gv:jest` to setup jest.
**Features**
- Base test
- File Stub to prevent errors when files are imported in components
- Base test for the `Button` component if `rn-toolbox-gv:base` was installed
- Inclusion of `npm run test:lint` when running `npm test` if `rn-toolbox-gv:lint` was installed