Refactor tests structure, update Husky hooks, and add commitlint#18
Merged
remi-bezot merged 6 commits intomainfrom Jan 3, 2025
Merged
Refactor tests structure, update Husky hooks, and add commitlint#18remi-bezot merged 6 commits intomainfrom
remi-bezot merged 6 commits intomainfrom
Conversation
- Added .commitlintrc.js for commit message validation - Updated Husky hooks for pre-commit and pre-push - Improved CI/CD workflows in .github/workflows/ci.yml - Configured ESLint and Prettier for consistency - Adjusted package.json scripts and dependencies - Updated tsconfig.json to align with ESNext and strict settings - Enhanced vitest configuration for better test setup ACTION REQUIRED: Run `pnpm install` and ensure Husky hooks are executable with `chmod +x .husky/*`.
- Moved test files from 'src/tests/' to 'tests/' - Updated import paths in test files to reflect new structure - Modified index test for better structure and coverage - Updated utility functions in arrayUtils, logger, and stringUtils - Deleted old 'src/tests/index.test.ts' and created 'tests/index.test.ts'
- Updated @types/lodash to 4.17.14 - Updated @types/node to 22.10.5 - Updated semantic-release to 24.2.1 - Updated husky to 9.1.7
- Added commitlint to enforce commit message conventions - Configured husky to use commitlint in commit-msg hook - Created .commitlintrc.js with custom rules for validation
- Removed deprecated '.husky.sh' initialization lines - Updated pre-commit, pre-push, post-merge, post-commit, post-checkout, and post-rewrite hooks - Ensured compatibility with Husky 10 and streamlined hook tasks - Verified functionality across all hooks
|
🎉 This PR is included in version 2.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor tests structure, update Husky hooks, and add commitlint
This PR restructures the test files, updates Husky hooks for compatibility, and adds Commitlint for consistent commit messages.
Changes:
src/teststo the roottests/directoryValidation:
Review Notes:
Please review the updated test structure and Husky hook compatibility.