Demo-react-test-component

React component test demonstration project. The repository uses React, Testing-library, and React-scripts integration.

Testing Framework used 🤖

React Testing Library: 🧪

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.

Testing library supports: ℹ️

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.

Integrations: ⚙️

In order to prove the test compatibility on different operating systems and also different versions of Node.JS, integration with Github Actions was performed.

CI ✅

This project is integrated with a continuous integration tool GitHub Actions. Actions

Getting started 🥁

All you need to have installed is Node JS.

setup

Install the dependencies:
Make sure Node.js is installed
Navigate to the root of the repo

Clone the project

git clone git@github.com:heziofernandes/component-testing-react-native.git

Navigate to the root of the repo

cd component-testing-react-native

Install packages

yarn

Run tests: ♻️

yarn test or npm test

Run App locally:

yarn start