Best of JestNovember 2022

  1. 1
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    React Testing Library Tutorial – How to Write Unit Tests for React Apps

    The React Testing Library has a set of packages that help you test UI components in a user-centric way. This means it tests based on how the user interacts with the various elements displayed on the page. To set up a React Project with Vite, we'll be using Vite to set up our app that we'll test.

  2. 2
    Article
    Avatar of gitlabGitLab·4y

    How to automate testing for a React application with GitLab

    GitLab is a popular JavaScript library for building user interfaces. In this tutorial, I'll show you how to create a new React application with GitLab React. Run unit tests as part of the CI process in GitLab, and output the test results and code coverage into the pipeline. Define a test stage for your pipeline by adding the following code to your.gitlab-ci.yml file.