anuraag016 / Jest-Coverage-Diff

Jest Coverage report diff as a comment for Pull requests
MIT License
59 stars 46 forks source link

proposal: Use `jest.config` to Establish Coverage Threshold for New Files #28

Open therynamo opened 3 years ago

therynamo commented 3 years ago

As a user of jest-coverage-diff I would like to be able to fail a build if new files don't have "expected coverage".

I noticed that this plugin has a great feature that prepends ✨ 🆕. to all new files. Since we seem to already have these files available to us - could we leverage Jest and the jest.config.{ts|js} to fail the build if a given file does not meet the codebases expected thresholds?

anuraag016 commented 3 years ago

Thanks for using and providing feedback for the action, This seems like a good use case, will look into it whenever possible.

therynamo commented 3 years ago

Cool - if you want to think of some requirements - I can also take a go at it too!