Skip to content

chore: split husky — tests on pre-commit, build on pre-push - #8

Merged
cyp3rius merged 1 commit into
mainfrom
cursor/husky-pre-commit-pre-push-de22
Nov 3, 2026
Merged

cyp3rius merged 1 commit into
mainfrom
cursor/husky-pre-commit-pre-push-de22

Conversation

@cyp3rius

@cyp3rius cyp3rius commented Nov 3, 2026

Copy link
Copy Markdown
Member

📝 Description

Follow-up to #7: keep commits fast by running tests only on pre-commit, and move the plugin build to pre-push.

🔄 Changes

  • .husky/pre-commit: yarn test:run only (removed yarn build)
  • .husky/pre-push: yarn build (new)
  • .nvmrc left at 22 (already matches the keep-if-22 rule)

🧪 Testing

  • Commit triggered pre-commit → yarn test:run succeeded
  • Push triggered pre-push → yarn build succeeded locally

✅ Checklist

  • I have read and followed the Contributing Guidelines
  • I have read and agree with the Code of Conduct
  • My changes follow the code style of this project
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly

🔗 Related Issues

Follow-up to #7 / SO-17 husky wiring.

Open in Web Open in Cursor 

Move yarn build from pre-commit to pre-push so commits stay
fast while pushes still verify a successful plugin build.
@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (fcad72a) to head (3c20326).

Additional details and impacted files
@@          Coverage Diff          @@
##            main      #8   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         12      12           
  Lines         81      81           
  Branches       4       4           
=====================================
  Misses        81      81           
Flag Coverage Δ
unittest 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@cyp3rius
cyp3rius merged commit ce6bf62 into main Nov 3, 2026
4 checks passed
@cyp3rius
cyp3rius deleted the cursor/husky-pre-commit-pre-push-de22 branch November 3, 2026 20:33
@cyp3rius cyp3rius mentioned this pull request Nov 7, 2026
3 of 5 tasks
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