Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
/ jest-serializer-gql Public archive

Jest snapshot serializer that formats GraphQL tags.

License

Notifications You must be signed in to change notification settings

ryanep/jest-serializer-gql

Repository files navigation

jest-serializer-gql

code style: prettier MIT licensed codecov

Convert GraphQL schemas to a readable format for Jest snapshot testing.

Install

npm install --save-dev jest-serializer-gql

Usage

In order to use the Jest serializer, add this line to your Jest configuration.

"snapshotSerializers": [
  "jest-serializer-gql"
]