..."scripts":{"test:ci":"npx jest --watchAll=false --coverage=true","test":"npx jest --watch" },...
Configure yaml
azure-quickstart/data-access/azure-pipelines.yml
>> UPDATE NPM BUILD TASK>> Add 'npm run test:ci' before build production...# Build project and run tests - task:Bash@3displayName:'NPM: Prepare binaries and run tests'inputs:targetType:'inline'script:| export NODE_OPTIONS=--max_old_space_size=16384 npm ci npm run test:ci npm run build:productionworkingDirectory:'data-access'...>> UPDATE SONAR CLOUD PREPARE TASK>> Add sonar.javascript.lcov.reportPaths to extraProperties...# Set up SonarCloud - task:SonarCloudPrepare@1displayName:'SonarCloud: Prepare analysis configuration'inputs:SonarCloud:'sonarcloud'organization:'simnova'scannerMode:'CLI'configMode:'manual'cliProjectKey:'sharethrift-data-access'cliProjectName:'sharethrift-data-access'cliSources:'./data-access'extraProperties:| sonar.javascript.lcov.reportPaths=$(System.DefaultWorkingDirectory)/data-access/coverage/lcov.info