DevXTools

Guides

Learn how to use API mocking and test data tools effectively in your projects.

Comparison

MSW vs Nock vs Polly.js

Compare three popular JavaScript HTTP mocking libraries and find the right fit for your project.

🛠️ Tools: MSW, Nock, Polly.js
Tutorial

Spec-First Mocking with Prism and OpenAPI

Generate mock servers directly from your OpenAPI specifications using Prism.

🛠️ Tools: Prism
Tutorial

MSW in React: Mock a Checkout API and Test It with Playwright

Mock auth, search and checkout failures in a React app with MSW, then prove each fix with a runnable Playwright suite and step-by-step clips.

🛠️ Tools: MSW, Playwright
Tutorial

Testing a Next.js App Router Checkout with MSW and Playwright

Mock Server Component, Server Action and client-side fetches with one set of MSW handlers, then test a real checkout in parallel with Playwright.

🛠️ Tools: MSW, Playwright
Tutorial

React Native E2E Tests with Maestro and Playwright on Expo

Run one Expo journey with Playwright on the web build and Maestro on a native Android build: shared testIDs, stable network, CI cost and trade-offs.

🛠️ Tools: Maestro, Playwright
Tutorial

Mocking APIs in React Native with Mockifyer

Record and replay HTTP interactions in React Native applications for reliable testing.

🛠️ Tools: Mockifyer
Walkthrough

WanderWeird: Tracing a Multi-Service Expo App with Mockifyer

A walkthrough of the WanderWeird demo: seven Node services and an Expo app recorded and replayed with Mockifyer, plus Atlas and dashboard hop tracing.

🛠️ Tools: Mockifyer · by the Mockifyer maintainer
Best Practices

Realistic Test Data with Faker and Factories

Create maintainable, realistic test data using Faker and factory patterns with Fishery.

🛠️ Tools: Faker, Fishery
Best Practices

Keeping Mocks Honest with Pact

Use consumer-driven contract testing to ensure your mocks stay in sync with real APIs.

🛠️ Tools: Pact
Guide

Keploy and Mockifyer: When to Use Which

Keploy records backend traffic as API regression tests. Mockifyer records fetch and axios calls in Node.js and in React Native/Expo.

🛠️ Tools: Keploy, Mockifyer