jest-snapshots-json-rest-api

JSON →
library 1.1.2 ·javascript
verified Jun 7, 2026

Jest snapshot serializer for JSON REST API responses. As of v1.1.2, this package allows you to snapshot HTTP response objects that match a `{ status, body }` structure, generating JSON Schema snapshots instead of raw JSON. This is useful for API testing with libraries like `supertest` or `light-my-request`. The serializer produces schema-based snapshots that are more resilient to data changes. The package is stable but has a narrow scope. It is maintained primarily via community updates, with no active major development.