Compares the cobertura.xml file with a diff patch and verify the coverage percentage for changed code
npm install cobertura-diff-coveragecobertura as coverage reporter to jest configuration
git diff refs/remotes/origin/master...HEAD > diff.patch
`Add the command to package.json
`
"scripts": {
"cdc": "cdc"
},
``