feature: add npm test to pre-commit hook