observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 152 forks source link

Nothing happens after ng test is successfully run #95

Closed jbprat closed 7 years ago

jbprat commented 7 years ago

Hello, I am trying to make run your precommit hook on this environment:

When I run git commit the test pass successfully but then nothing happens.

jbprat commented 7 years ago

This wasn't a pre-commit problem, it came from the fact that ng test watch the files by default. I needed to add this script to my package.json :  "test-once": "ng test --watch=false",

3rd-Eden commented 7 years ago

Thanks for the update <3