Hook
Pre-commit Hook for Testing
コミット前に自動でテストを実行するフック。テストが失敗した場合はコミットをブロックし、コードの品質を保ちます。
JS
John Smith
Posted on 10/23/2024
#testing#ci-cd#quality-assurance
json
{
"hooks": {
"pre-commit": {
"command": "npm test",
"description": "Run tests before commit",
"failOnError": true
}
}
}Comments (0)
No comments yet. Be the first to comment!