language-testing-patterns

Provides testing patterns and guidance for Python and JS/TS projects.

2|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/jlaws/dotfiles --skill language-testing-patterns
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: language-testing-patterns
Source: https://github.com/jlaws/dotfiles/tree/main/.agents/skills/testing/language-testing-patterns
Command: npx skills add https://github.com/jlaws/dotfiles --skill language-testing-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Language-specific test patterns, fixtures, and mocking strategies for Python and JavaScript/TypeScript enable teams to design robust unit test suites that focus on user-visible behavior and avoid testing framework internals.

Core Features & Use Cases

  • Clear guidance on what to unit test and what not to test.
  • Language-specific fixtures, mocking strategies, and testing patterns for Python and JS/TS, with references to pytest and Vitest/Jest patterns.
  • Best practices for test naming, coverage priorities, and test utilities usage.

Quick Start

Apply the language-testing-patterns guide's recommended fixtures and mocking strategies to your Python and JS/TS test suites.

Frequently Asked Questions about language-testing-patterns

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

FAQPage Schema
What are the best unit testing patterns for Python and JavaScript?▼

Unit testing patterns for Python and JavaScript involve standardizing test suite design, fixture selection, and mocking strategies to focus on user-visible behavior rather than framework internals. This approach ensures robust test suites across pytest and Vitest/Jest.

How do I choose the right mocking strategy for pytest and Vitest?▼

Choosing the right mocking strategy for pytest and Vitest involves applying language-specific patterns that isolate external dependencies while verifying user-visible behavior. The guide provides targeted mocking strategies for both Python and JavaScript/TypeScript environments.

What should I not unit test in my Python or JavaScript suite?▼

You should not unit test framework internals or implementation details in your Python or JavaScript suite. The language-testing-patterns guide provides explicit rules on what to test and what to exclude, prioritizing user-visible behavior and coverage metrics.

Does this testing guide work with both TypeScript and Python projects?▼

Yes, this guide works with both TypeScript and Python projects by providing language-specific testing patterns. It references established frameworks like pytest for Python and Vitest or Jest for JavaScript/TypeScript to ensure broad compatibility across these environments.

What is the best way to organize fixtures across Python and JS test suites?▼

Organizing fixtures across Python and JS test suites is best handled by adopting language-specific patterns that standardize setup and teardown. The guide specifies fixture selection strategies referencing pytest for Python and Vitest or Jest for JavaScript/TypeScript.

When should I avoid mocking internal modules in unit tests?▼

You should avoid mocking internal modules in unit tests when it prevents you from verifying actual user-visible behavior. The guide's testing patterns emphasize focusing on user-facing outcomes rather than testing framework internals or isolated implementation details.