Back to skills
SKILL.md
Jest
ASecurityJest configuration, mocking strategies, snapshot testing, and coverage.
- 1,760 stars
- 0 votes
- 0 copies
- 4 views
- Added September 2, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add a5c-ai/babysitter --skill jest --agent claude-codeAre you the author of Jest?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/a5c-ai-jest-babysitter)---
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.md
- SKILL.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.