LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

javascript-testing-patterns - JavaScript and TypeScript Testing Strategies

Implement unit, integration, and end-to-end tests with Jest, Vitest, Testing Library, mocking, fixtures, and TDD workflows.

Tags

Updated: 2026-09-29

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Configure Jest and Vitest
  • Write unit tests
  • Create integration tests
  • Implement end-to-end tests
  • Mock dependencies and APIs
  • Build fixtures and test workflows
  • Apply TDD and BDD workflows

Inputs

  • JavaScript or TypeScript source code
  • Test requirements
  • Framework configuration
  • External dependency interfaces

Outputs

  • Test files
  • Test configuration files
  • Test execution results
  • Coverage reports
  • CI/CD testing setup

Requirements

  • JavaScript or TypeScript project
  • Jest or Vitest support
  • Testing Library support when testing components

Source

  • Spec: SKILL.md
JavaScript
TypeScript
testing
Jest
Vitest
Testing Library
TDD
BDD
Configure Jest and Vitest
Write unit tests
Create integration tests
Implement end-to-end tests
JavaScript or TypeScript source code
Test requirements
Framework configuration
Test files
Test configuration files
Test execution results