| name | testing-codequality-check |
| description | Testing code changes to ensure code quality after implementing changes in Typescript files (*.test.tsx, *.stories.tsx). Use this skill after changing Typescript files, to ensure that your code is well tested and follows the best practices. |
| allowed-tools | Read, Bash(pnpm test:*) |
Testing Code Quality Checks Skill
This skill provides guidance on how to ensure code quality after implementing changes in Typescript files.
Overview
To ensure consistent code quality in Typescript projects, it is essential to to run code quality checks after implementing changes and new features.
The checks performed by this skill are:
- Unit tests
- Component tests
- Code Coverage
It is critical that all checks pass before changes are committed to the git branch.
Workflow
1. **Identify Changed Typescript Files**:Run the checks for all typescript files. Relevant files include *.test.tsx and *.stories.tsx
How to run the tools
All tools must be run via pnpm commands from the project root directory.
pnpm test:unit
pnpm test:sb
pnpm test:coverage