agentsclimarketplace

Jest

Skill a5c-ai/babysitter/library/specializations/web-development/skills/jest

Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration

Install
npx -y skills add a5c-ai/babysitter --skill jest

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

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

SKILL.md

1.3 KB, as published. Nobody here has run it

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

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.