# relay-test-utils

> Utilities for testing Relay applications.

Latest version **21.0.1** (published 2026-05-27) · MIT license · 181.6K weekly downloads

## Install

```sh
npm install relay-test-utils
pnpm add relay-test-utils
yarn add relay-test-utils
bun add relay-test-utils
```

## Health

**Score 78/100 (B)** — status: active.

Positive: moderate downloads; has types package; no vulnerabilities; has provenance; high maintenance score; popular repo.

Warnings: no esm support.

## Facts

| | |
|---|---|
| Version | 21.0.1 |
| Published | 2026-05-27 |
| First published | 2018-01-16 |
| Weekly downloads | 181.6K |
| License | MIT |
| TypeScript types | separate (@types/relay-test-utils) |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 99.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18964 |
| Maintainers | yuzhi, relay-bot |
| Keywords | graphql, relay |

## Links

- npm: https://www.npmjs.com/package/relay-test-utils
- Repository: https://github.com/facebook/relay
- Homepage: https://relay.dev
- Issues: https://github.com/facebook/relay/issues
- npm.io page: https://npm.io/package/relay-test-utils

## Dependencies (4)

- [fbjs](https://npm.io/package/fbjs.md) ^3.0.2
- [invariant](https://npm.io/package/invariant.md) ^2.2.4
- [relay-runtime](https://npm.io/package/relay-runtime.md) 21.0.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.25.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads
- [@urql/exchange-execute](https://npm.io/package/@urql/exchange-execute.md) — 10.9K weekly downloads

## Recent versions

- 21.0.1 (latest) — 2026-05-27
- 0.0.0-main-b81643b1 (main) — 2026-09-24
- 13.0.0-rc.2 (dev) — 2021-12-29
- 0.0.0-main-b8344d0d — 2026-09-24
- 0.0.0-main-8fb60eea — 2026-09-24
- 0.0.0-main-156c45b1 — 2026-09-24
- 0.0.0-main-9735eb4b — 2026-09-24
- 0.0.0-main-a4ee15bc — 2026-09-24
- 0.0.0-main-b21986c4 — 2026-09-23
- 0.0.0-main-af0bcbe0 — 2026-09-23
- 0.0.0-main-a7fa727b — 2026-09-22
- 0.0.0-main-f5b88420 — 2026-09-22
- 0.0.0-main-e3f5d71e — 2026-09-22
- 0.0.0-main-30f49981 — 2026-09-21
- 0.0.0-main-97c3a9fd — 2026-09-21
- … 4268 more at https://npm.io/package/relay-test-utils/versions

## README

## relay-test-utils

More details: https://relay.dev/docs/guides/testing-relay-components/

---
_Source: https://npm.io/package/relay-test-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
