December 2019
Intermediate to advanced
598 pages
12h 21m
English
We need to make some changes to the configuration of the frontend tests and end-to-end tests so that they execute correctly in the build and deployment pipelines. Let's open the frontend project in Visual Studio Code and make the following changes:
..."scripts": { ... "test": "react-scripts test", "test:ci": "cross-env CI=true react-scripts test", ...},...
This script sets an environment variable called CI to true before running the Jest tests.
Read now
Unlock full access