SamagraX-Stencil / stencil-cli

NestJS CLI on steroids for stencil 🍹
https://stencil.samagra.io/cli/introduction
Other
5 stars 10 forks source link

Implement Husky Precommit Hook to Run Test Suite Before Committing Changes #27

Open Savio629 opened 4 months ago

Savio629 commented 4 months ago

Description

Currently, our project lacks a mechanism to ensure that all changes adhere to our testing standards before they are committed. This issue aims to address this by implementing a Husky precommit hook that automatically runs the test suite before allowing commits to be made. By enforcing this practice, we can maintain code quality and prevent regressions by catching potential issues early in the development process.

Objective

The primary objective of this issue is to update the Husky precommit hook to execute the test suite automatically before allowing any commits to proceed. Right now, it uses lint-staged via npx to execute linting tasks on staged files before allowing commits. Ref: https://github.com/SamagraX-Stencil/stencil-cli/blob/master/.husky/pre-commit

Goals

Complexity: Easy

Product Name

Stencil-cli

Organisation Name

SamagraX

Domain

Bash

Tech Skills Needed

Bash, Husky