React component test demonstration project. The repository uses React, Testing-library, and React-scripts integration.
React Testing Library is a light-weight testing library. It provides light utility functions on top of react-dom and react-dom/test-utils, in a way that encourages good testing practices.
Apart from React, Jest supports unit testing of Angular, VueJS, NodeJS, and others. Libraries and Frameworks For React Developers supports
- Jest.
- Mocha.
- Chai.
- Jasmine.
- Enzyme.
- Cypress IO.
- React-testing-library.
- Puppeteer.
In order to prove the test compatibility on different operating systems and also different versions of Node.JS, integration with Github Actions was performed.
This project is integrated with a continuous integration tool GitHub Actions. Actions
All you need to have installed is Node JS.
Install the dependencies:
Make sure Node.js is installed
Navigate to the root of the repo
git clone git@github.com:heziofernandes/component-testing-react-native.git
cd component-testing-react-native
yarn
yarn test or npm test
yarn start