I am using jest and istanbul in my ReactJS project to write test cases and check on the test coverage.
How do I ensure using a pre-commit hook that test coverage for any file, that I have staged to git, doesn't decrease from its current value before its committed?