Skip to content

chore(hooks): drop jest from pre-commit - #5690

Merged
lvrach merged 1 commit into
developfrom
chore/sec-597-husky-v9
Oct 27, 2026
Merged

lvrach merged 1 commit into
developfrom
chore/sec-597-husky-v9

Conversation

@lvrach

@lvrach lvrach commented Oct 18, 2026

Copy link
Copy Markdown
Member

What changed

  • pre-commit no longer runs the jest suites. The test-case generation check and lint-staged stay.
  • The pre-commit hook sets -e itself, as husky v9 does. A failed test-case generation blocks the commit under any hooks runner.

Why

A full test run on every commit takes minutes. CI already runs the same suite on every pull request.

How to verify

  • Commit a staged change: lint-staged runs and jest does not.

What is not covered

  • A core.hooksPath that an earlier husky install left in .git/config still overrides a global one. git-hooks scan-local from rudderlabs/git-hooks removes it.

🤖 Generated with Claude Code

pre-commit ran both jest suites on every commit. CI runs them on
every pull request, so pre-commit keeps the test-case generation
check and lint-staged.

The hook now sets -e itself, as husky v9 does, so a failed test-case
generation blocks the commit under any hooks runner.

Verify: commit a staged change. jest does not run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 987d8b0f-97b8-4600-ba4e-ac4c2ed1afdf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.15%. Comparing base (0ba2227) to head (b233404).
⚠️ Report is 37 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5690   +/-   ##
========================================
  Coverage    92.15%   92.15%           
========================================
  Files          719      719           
  Lines        39967    39967           
  Branches      9282     9354   +72     
========================================
  Hits         36833    36833           
+ Misses        2949     2869   -80     
- Partials       185      265   +80     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lvrach
lvrach marked this pull request as ready for review October 22, 2026 13:50
@lvrach
lvrach requested review from a team as code owners October 22, 2026 13:50
@lvrach
lvrach merged commit 86ceb7c into develop Oct 27, 2026
50 checks passed
@lvrach
lvrach deleted the chore/sec-597-husky-v9 branch October 27, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants