accelint-ts-testing

Codify Vitest testing patterns for TypeScript projects with AAA structure and fast-check.

17|1|Updated Mar 14, 2025
One-click install
npx skills add https://github.com/deckgl-fiber-renderer/fiber.gl --skill accelint-ts-testing-deckgl-fiber-renderer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: accelint-ts-testing
Source: https://github.com/deckgl-fiber-renderer/fiber.gl/tree/main/.agents/skills/accelint-ts-testing
Command: npx skills add https://github.com/deckgl-fiber-renderer/fiber.gl --skill accelint-ts-testing-deckgl-fiber-renderer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This skill codifies expert Vitest testing patterns to improve reliability, maintainability, and performance of TypeScript test suites across teams.

Core Features & Use Cases

  • Robust test organization with AAA pattern
  • Parameterized tests and async testing guidance
  • Guidance for mocks, test doubles and performance optimization
  • Property-based testing patterns with fast-check

Quick Start

Review SKILL.md to begin applying Vitest best practices in your projects.

Frequently Asked Questions about accelint-ts-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Vitest tests in TypeScript using the AAA pattern?

Parameterize Vitest tests by passing arrays of inputs to test cases to cover multiple scenarios efficiently. This pattern reduces code duplication and ensures your TypeScript functions handle diverse edge cases systematically.

Does Vitest work with fast-check for property-based testing in TypeScript?

Standardize TypeScript test suites by applying global mock-cleanup configurations and setup patterns. This ensures consistent test isolation, prevents state leakage between tests, and maintains suite performance.

What is the best way to handle async testing and mocks in Vitest?

Handle async testing in Vitest by using async/await within test blocks and properly configuring mocks. This ensures asynchronous operations resolve correctly and test doubles are managed without leaking state.

How do I audit existing TypeScript test suites for Vitest best practices?

Audit existing TypeScript test suites by checking for AAA structure compliance, proper async handling, mock cleanup, and performance bottlenecks. This identifies maintainability gaps and enforces standardized testing patterns.