Skip to content
Permalink
Browse files
Add jest --coverage -o to pre-commit script
The command '.node_modules/.bin/jest --coverage -o' would run jest to
test all files changed since last commit and print the report
(including code coverage) in the terminal.

The purpose of this commit is to enable collaborators to check if
the changed files are covered by unit-testing, without wasting time
running all the test suites.

This addition to the commit process might prove to be undesirable, and
is therfore subject to change.
  • Loading branch information
jeea2 committed Nov 15, 2019
1 parent fccef4e commit e4d321248d3e8eb79c2b94850f75b7976d033341
Showing 1 changed file with 4 additions and 0 deletions.
@@ -3,3 +3,7 @@
set -e # using the options command to abort script at first error
echo "running the 'pre-commit' script"
./node_modules/.bin/eslint .
./node_modules/.bin/jest --coverage -o



0 comments on commit e4d3212

Please sign in to comment.