README.md

Commit workflow

Simple commit workflow example for JS projects.

Clone the repo

yarn install

Play around

To test out the workflow you can make a change to either math.js or add.js and git commit.

Note that changing add.js will trigger bothadd.test.js and math.test.js to run on the pre-commit hook, because the math module uses the add module internally, and the pre-commit hook runs jest --findRelatedTests.