You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes. It works in CI server. If i set the env (CI) variable, it works in local system as well. I am running this as part of precommit hook. Is it recommended to set CI variable? Or is it a workaround?
Create an app with CRA
Add the coverage threshold in the package.json file
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
}
run the command - npm test -- --watchAll=false --coverage
We can see "index.tsx" is not covered and the "threshold not met" messages in the console. But the script is not failing.
The text was updated successfully, but these errors were encountered: