GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mswjs/data: Data querying library for testing JavaScript applications.

BranchesTags
Open more actions menu

Latest commit

 

History

357 Commits
357 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
decisions
decisions
 
 
extensions
extensions
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.node-version
.node-version
 
 
.prettierrc.json
.prettierrc.json
 
 
LICENSE.md
LICENSE.md
 
 
MIGRATING.md
MIGRATING.md
 
 
README.md
README.md
 
 
logo.svg
logo.svg
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
playwright.extend.ts
playwright.extend.ts
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
release.config.json
release.config.json
 
 
tsconfig.base.json
tsconfig.base.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.src.json
tsconfig.src.json
 
 
tsconfig.test.json
tsconfig.test.json
 
 
tsdown.config.ts
tsdown.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

The Data library logo

@msw/data

Data querying library for testing JavaScript applications.

Motivation

This library exists to help developers model and query data when testing and developing their applications. It acts as a convenient way of creating schema-based fixtures and querying them with a familiar ORM-inspired syntax. It can be used standalone or in conjuncture with Mock Service Worker for seamless mocking experience both on the network and the data layers.

Features

  • Relies on Standard Schema instead of inventing a proprietary modeling syntax you have to learn. You can use any Standard Schema-compliant object modeling library to describe your data, like Zod, ArkType, Valibot, yup, and many others.
  • Full runtime and type-safety.
  • Provides a powerful querying syntax (inspired by Prisma);
  • Supports relations for database-like behaviors (inspired by Drizzle);
  • Supports extensions (including custom extensions) for things like cross-tab collection synchronization or record persistence.

Documentation

  • Getting started
  • Querying
  • Relations
  • Extensions
  • API reference

About

Data querying library for testing JavaScript applications.

mswjs.io/ecosystem/data

Topics

apidata-modelingfixturesmockingormtestingtesting-tool

Resources

Readme
MIT license
Activity
Custom properties

Stars

1.1k stars

Watchers

5 watching

Forks

66 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.