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 - Build JavaScript and TypeScript testing strategies

Guides unit, integration, and end-to-end testing with Jest, Vitest, and Testing Library, including mocking, fixtures, and TDD workflows.

Tags

Updated: 2026-09-29

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Set up test infrastructure
  • Write unit tests
  • Create integration tests
  • Implement end-to-end tests
  • Mock external dependencies
  • Test frontend components
  • Apply test-driven development
  • Configure continuous testing

Inputs

  • JavaScript or TypeScript project
  • Source code
  • External dependency interfaces
  • User flow definitions
  • CI/CD pipeline configuration

Outputs

  • Test files
  • Test configuration
  • Mock implementations
  • Test results
  • Coverage reports

Requirements

    Source

    • Spec: SKILL.md
    JavaScript
    TypeScript
    testing
    Jest
    Vitest
    Testing Library
    mocking
    TDD
    Set up test infrastructure
    Write unit tests
    Create integration tests
    Implement end-to-end tests
    JavaScript or TypeScript project
    Source code
    External dependency interfaces
    Test files
    Test configuration
    Mock implementations