Skip to content
React Libraries
On this page

@mswjs/data

Tools for modeling and querying data in tests.

What it does

Tools for modeling and querying data in tests.

When it fits

Building a stateful mocked backend for application test scenarios.

Other options in this category

  • @msw/playwright — Controlling network responses during browser-level application tests.
  • Argos — Detecting interface changes by comparing screenshots in development workflows.
  • enforce-unique — Avoiding duplicate fixture values while creating test data.
  • Faker — Creating sample users, records, and large development datasets.
  • Falso — Creating typed fixtures such as names, addresses, and product details.

Source

Project source for @mswjs/data ↗

Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.

Test a user workflow →

All testing & mock data options →