Sys 287 jest it up #39
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will need to be merged into dev to test the functionality. This adds jest-it-up to track coverage historically in the repo's jest config. After this is merged there are a few test cases that will be somewhat difficult to test but this is coded so that we should be able to migrate the changes without any impact to anything without an npm script for
test:coverage
. this will look to see iftest:coverage
exists and if it does it will assume the repo running CI is using jest and will use jest-it-up to store current coverage requirements.this will use both the most recent coverage levels as well as a global variable (that can be overridden at the repo level) to determine "target coverage". The intention is to require coverage to stay the same or improve until it hits the target coverage (currently 80%) and once it hits target coverage, it just has to stay above that target.
ex: initially starts with 0% in jest config. runs and his 50%. Next run must be 50% or higher or the build will fail. Once it gets past 80% coverage could go up to 90% and drop back down to 80% and still pass the build.