shai-unit-testing-ts
CommunityWrite high-quality TS unit tests with Jest.
Software Engineering#typescript#jest#code-quality#mocking#unit-testing#testing-patterns#test-structure
Authorkirillshilin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
TypeScript unit testing with Jest often lacks a unified approach. This skill provides a framework-agnostic, best-practice guide to help developers write, structure, and maintain high-quality TS tests, including mocking strategies, naming conventions, and coverage rules.
Core Features & Use Cases
- Guidance on test file structure, naming conventions, mocking strategy, assertion patterns, and coverage rules for TypeScript tests with Jest.
- Differentiates general TS unit testing from framework-specific tests (Angular/React) to direct users to the right skill.
- Provides workflow steps and references to test-plan and mocking guides.
Quick Start
Write a small sample TypeScript class test in Jest that demonstrates the AAA pattern and a typed mock.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: shai-unit-testing-ts Download link: https://github.com/kirillshilin/instructions/archive/main.zip#shai-unit-testing-ts 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 471,000+ vetted skills library on demand.