Skip to content
Back to skills

Jest

ASecurity

Jest configuration, mocking strategies, snapshot testing, and coverage.

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 2, 2026
ai-agentstypescriptbashreacttestingfrontend

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill jest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-jest-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-jest-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jest
description: Jest configuration, mocking strategies, snapshot testing, and coverage.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
graph:
  domains: [domain:web-development]
  specializations: [specialization:web-development]
  skillAreas: [skill-area:react-testing, skill-area:unit-testing]
  roles: [role:frontend-engineer, role:qa-engineer]
  workflows: [workflow:feature-development]
  topics: [topic:test-driven-development]

---

# Jest Skill

Expert assistance for testing with Jest.

## Capabilities

- Configure Jest for various frameworks
- Implement mocking strategies
- Write snapshot tests
- Configure coverage
- Handle async testing

## Test Patterns

```typescript
describe('UserService', () => {
  let service: UserService;
  let mockRepository: jest.Mocked<UserRepository>;

  beforeEach(() => {
    mockRepository = {
      findAll: jest.fn(),
      findById: jest.fn(),
      create: jest.fn(),
    };
    service = new UserService(mockRepository);
  });

  it('should return all users', async () => {
    mockRepository.findAll.mockResolvedValue([{ id: '1', name: 'John' }]);

    const result = await service.findAll();

    expect(result).toHaveLength(1);
    expect(mockRepository.findAll).toHaveBeenCalled();
  });
});
```

## Target Processes

- unit-testing
- integration-testing
- tdd-development

Files in this skill

  • README.md330 B
  • SKILL.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.