๐ŸŽฏ

javascript-typescript-jest

๐ŸŽฏSkill

from github/awesome-copilot

Installation

Vibe Index InstallInstalls to .claude/skills/
$npx vibeindex add github/awesome-copilot --skill javascript-typescript-jest
skills.sh Installโš  Installs to .agents/skills/
$npx skills add github/awesome-copilot --skill javascript-typescript-jest
Manual InstallCopy SKILL.md content and save to the path below
path
~/.claude/skills/javascript-typescript-jest/SKILL.md
VibeIndex|
What it does
|

Provides Jest best practices for JavaScript/TypeScript testing, covering test structure, mocking strategies with jest.mock and spyOn, async testing, and snapshot testing patterns.

Overview

JavaScript TypeScript Jest is a skill from the Awesome GitHub Copilot collection that provides best practices for writing JavaScript and TypeScript tests using the Jest testing framework. It covers test structure, file naming conventions, mocking strategies with jest.mock and spyOn, async testing patterns, snapshot testing, and React component testing with React Testing Library.

Key Features

  • Test Structure Guidance - Defines naming conventions (.test.ts/.test.js), file placement, and describe/it block organization patterns
  • Comprehensive Mocking - Covers jest.mock() for modules, jest.spyOn() for functions, mockImplementation/mockReturnValue, and mock reset strategies
  • Async Testing Patterns - Provides patterns for testing promises with async/await, resolves/rejects matchers, and timeout management
  • Snapshot Testing - Guides snapshot test creation for UI components and complex objects with review best practices
  • React Testing Library Integration - Recommends testing user behavior with userEvent, accessibility-focused queries, and role/label-based selectors

Who is this for?

This skill is designed for JavaScript and TypeScript developers who write tests with Jest and want AI-assisted guidance on testing best practices. It is particularly useful for frontend teams testing React applications who need consistent testing patterns, proper mocking strategies, and guidance on when to use snapshot testing versus behavioral testing.

๐Ÿ“ฆ

Same repository

github/awesome-copilot(378 items)

javascript-typescript-jest

SKILL.md

11,900Installs
-
AddedFeb 25, 2026

More from this repository10

๐ŸŽฏ
git-commit๐ŸŽฏSkill

A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.

๐ŸŽฏ
excalidraw-diagram-generator๐ŸŽฏSkill

Generates Excalidraw diagrams from natural language descriptions, creating visual representations of processes, systems, relationships, and ideas.

๐ŸŽฏ
documentation-writer๐ŸŽฏSkill

Expert technical writer guided by the Diataxis framework, creating tutorials, how-to guides, reference docs, and explanation pages for software documentation.

๐ŸŽฏ
multi-stage-dockerfile๐ŸŽฏSkill

Creates optimized multi-stage Dockerfiles for any language or framework, separating builder and runtime stages to produce smaller, more secure container images.

๐ŸŽฏ
gh-cli๐ŸŽฏSkill

A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.

๐ŸŽฏ
prd๐ŸŽฏSkill

Generates comprehensive Product Requirements Documents (PRDs) by systematically analyzing requirements and crafting detailed technical specifications

๐ŸŽฏ
refactor๐ŸŽฏSkill

A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.

๐ŸŽฏ
java-springboot๐ŸŽฏSkill

Provides Spring Boot best practices covering project setup, dependency injection, REST API design, data access with JPA, security configuration, and testing strategies.

๐ŸŽฏ
playwright-generate-test๐ŸŽฏSkill

Generates Playwright end-to-end tests from user-described scenarios using Playwright MCP for browser automation.

๐ŸŽฏ
conventional-commit๐ŸŽฏSkill

Generates conventional commit messages using structured XML format following the Conventional Commits specification.