javascript-typescript-jest
CommunityMaster Jest/Vitest for robust JS/TS testing.
Authorbryandrenner
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides best practices and patterns for writing effective and maintainable tests for JavaScript and TypeScript projects using Jest and Vitest, ensuring code quality and reliability.
Core Features & Use Cases
- Test Structure: Guidelines for organizing tests with
describeanditblocks. - Mocking Strategies: Techniques for isolating code by mocking dependencies using
jest.mockandjest.spyOn. - Async Testing: Patterns for handling asynchronous operations within tests.
- Component Testing: Recommendations for testing React components using React Testing Library.
- Use Case: Ensure your new feature in a React application is thoroughly tested by following the recommended structure, mocking external API calls, and verifying user interactions.
Quick Start
Organize your Jest tests by placing them in files named *.test.ts next to the source code they cover.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: javascript-typescript-jest Download link: https://github.com/bryandrenner/ai-agent-configs/archive/main.zip#javascript-typescript-jest Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.