Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

testing

verified

TypeScript testing strategies and type-safe test practices

View on GitHub

Marketplace

pluginagentmarketplace-typescript

pluginagentmarketplace/custom-plugin-typescript

Plugin

typescript-developer-plugin

Repository

pluginagentmarketplace/custom-plugin-typescript
1stars

skills/testing/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/pluginagentmarketplace/custom-plugin-typescript/blob/main/skills/testing/SKILL.md -a claude-code --skill testing

Installation paths:

Claude
.claude/skills/testing/
Powered by add-skill CLI

Instructions

# TypeScript Testing Skill

## Overview
Master TypeScript testing including type-safe test setup, mocking with types, and testing type definitions.

## Topics Covered

### Test Setup
- Jest with ts-jest
- Vitest configuration
- ts-node for tests
- Path alias resolution
- Test coverage with types

### Type-Safe Mocking
- Typed mock functions
- jest.Mocked utility
- vi.fn() typing
- Mock implementations
- Partial mocking

### Type Testing
- tsd for type tests
- expect-type library
- Type assertion tests
- Compile-time testing
- Edge case type testing

### Testing Patterns
- Generic test utilities
- Type-safe fixtures
- Builder patterns for tests
- Custom matchers with types
- Assertion type narrowing

### Integration Testing
- API testing with types
- Database testing
- E2E type safety
- Request/response typing
- Test data factories

## Prerequisites
- TypeScript fundamentals
- JavaScript testing basics

## Learning Outcomes
- Write type-safe tests
- Test type definitions
- Create typed mocks
- Build test utilities

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1019 chars