Answers
- An environment variable called 
CI needs to be set toÂtruefor Jest tests to work well in a CI environment. - When we change the 
azure-pipelines.yml file, it is automatically committed and pushed to our master branch in our source code repository. Thetriggeroption in the file specifies that a build should trigger when code is pushed to the master branch. So, a build is triggered when this happens. - The 
-scripttask can be used to execute npm commands. - The 
PublishBuildArtifacts@1task can be used to publish artifacts to the pipeline. - The frontend build sets an environment variable called 
REACT_APP_ENV, which the code uses to determine which environment it is in. This is the reason we have different frontend builds. - The 
Azure App Service Deploytask type in a release pipeline stage can be used to deploy build artifacts to Azure App Service.