Getting started
Create a collection, seed it with records, and query them.
Data querying library for testing JavaScript applications.
Data is a library for modeling and querying data when testing and developing JavaScript applications. It acts as a convenient way of creating schema-based fixtures and querying them with a familiar ORM-inspired syntax. You can use it standalone or together with Mock Service Worker for a seamless mocking experience on both the network and the data layers.
import { Collection } from '@msw/data'If you've never used Data before, here's the best place to start:
Getting started
Create a collection, seed it with records, and query them.