Articles about Testing
13 articles
Mocking: effective patterns for unit tests
Mocking patterns for unit tests in TypeScript: mocks, stubs, spies and fakes. When to use them and how to avoid over-mocking.
E2E Testing in CI: headless execution and reporting
Configure E2E testing in CI with Playwright: headless execution, parallelism, reporting, and strategies to reduce false positives.
Structured data testing: validation and tools
Guide to structured data testing: validation tools, common errors, and how to ensure correct rich snippets.
API Testing with Supertest: practical guide
Practical guide to API testing with Supertest and Jest. Learn to test HTTP endpoints, validate responses, and simulate authentication.
Integration Testing: strategies for testing integrations
Integration testing strategies for testing interactions between modules, databases, and external APIs. Practical examples with Supertest and TestContainers.
Test Coverage: code quality metrics
Learn about test coverage: what it measures, how to interpret it, reporting tools, and why 100% coverage doesn't mean bug-free code.
TDD: test-driven development from scratch
Practical guide to TDD (Test-Driven Development) with TypeScript: Red-Green-Refactor cycle, real examples, and benefits for code quality.
Cypress vs Playwright: E2E framework comparison
Detailed comparison between Cypress and Playwright for E2E testing: performance, browser support, API, community, and when to choose each one.
Playwright: modern E2E testing for web applications
Learn Playwright for E2E testing: installation, multi-browser support, assertions, and code generation for robust tests in Chrome, Firefox, and Safari.
React Testing Library: best practices for testing components
Learn React Testing Library best practices for effectively testing React components, focusing on user behavior rather than implementation details.
Automated testing from unit to end-to-end: a complete guide
A practical guide to automated testing for web applications — covering unit tests, integration tests, end-to-end tests, and how to build a balanced test suite.
Unit testing with Jest and Vitest: complete guide
Complete guide to unit testing with Jest and Vitest. Configuration, mocks, coverage, and best practices for effective unit tests.
Dependency Injection: DI containers in TypeScript
Implement Dependency Injection in TypeScript with DI containers like tsyringe and inversify. Learn to decouple components and simplify testing.