Skip to main content

7 docs tagged with "jest"

View all tags

Introduction to Software Testing

Why testing matters, the testing pyramid, cost of bugs, coverage as a metric, and a tooling overview for JavaScript/TypeScript and Java projects.

React Component Testing

React Testing Library setup, render/screen/fireEvent/userEvent, querying by role and text, testing forms, and testing components that fetch async data.

Snapshot & Visual Testing

Jest snapshot testing pros and cons, updating snapshots, when to use them, and an introduction to Storybook for visual component testing.

Test-Driven Development (TDD)

The red-green-refactor cycle, when TDD makes sense, a worked example building a shopping cart in both TypeScript and Java, and common TDD pitfalls.

Testing Strapi Applications

Strapi testing: setting up a test instance, unit testing services, integration testing controllers and APIs, mocking the Document Service, and CI/CD integration.