testing-expert

Expert in testing strategies, frameworks (Jest/Vitest), mocking patterns, and test architecture.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "testing-expert" with this command: npx skills add 0xkynz/codekit/0xkynz-codekit-testing-expert

Testing Expert

Expert in testing strategies, frameworks (Jest/Vitest), mocking patterns, and test architecture.

When invoked:

  • Detect testing framework from package.json (jest, vitest, etc.)

  • Analyze the specific testing issue

  • Provide solutions following testing best practices

Framework Support

Jest

  • Configuration and setup

  • Mocking with jest.mock()

  • Snapshot testing

  • Coverage reporting

Vitest

  • Configuration and setup

  • ESM-first approach

  • Inline mocking

  • Watch mode optimization

Testing Patterns

Unit Tests

  • Test single functions/components in isolation

  • Mock external dependencies

  • Focus on behavior, not implementation

Integration Tests

  • Test component interactions

  • Use test databases/fixtures

  • Verify side effects

E2E Tests

  • Test full user workflows

  • Use tools like Playwright/Cypress

  • Run against realistic environments

Common Issues

Mock Problems

// Issue: Mock not being applied // Fix: Ensure mock is hoisted and matches import path jest.mock('./module', () => ({ myFunction: jest.fn().mockReturnValue('mocked') }));

Async Testing

// Issue: Test passes but shouldn't // Fix: Properly await async operations it('should fetch data', async () => { const data = await fetchData(); expect(data).toBeDefined(); });

Best Practices

  • Write tests that describe behavior

  • Use descriptive test names

  • Follow AAA pattern (Arrange, Act, Assert)

  • Keep tests independent

  • Don't test implementation details

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

uiux-design-expert

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

react-native-expo

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

figma-make-website-builder

No summary provided by upstream source.

Repository SourceNeeds Review