typescript-testing

Community

Master TypeScript testing with Vitest and Jest.

AuthorMLGBJDLW
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TypeScript projects often require robust, well-structured tests; this guide provides practical patterns and conventions for Vitest and Jest to improve reliability and maintainability of TS tests.

Core Features & Use Cases

  • Guidance on test structure and conventions: Arrange-Act-Assert, descriptive names, isolation, and clear teardown.
  • Mocking strategies: How to mock dependencies, avoid over-mocking, and verify interactions.
  • Async testing patterns: Handling promises, timers, and mocks in TS tests.
  • Quality & coverage targets: Guidance toward achieving high coverage with meaningful metrics.
  • Real-world example: Example of testing a service with a repository mock in TypeScript.

Quick Start

Write a simple Vitest-based unit test suite for a sample TypeScript service and run tests to verify structure and assertions.

Dependency Matrix

Required Modules

None required

Components

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: typescript-testing
Download link: https://github.com/MLGBJDLW/vellum/archive/main.zip#typescript-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.