amazeelabs/graphql_snapshot_test

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.1.5) of this package.

Drush commands for GraphQL snapshot testing.

Maintainers

Package info

github.com/AmazeeLabs/graphql_snapshot_test

Type:drupal-drush

pkg:composer/amazeelabs/graphql_snapshot_test

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

1.1.5 2023-03-23 11:12 UTC

This package is auto-updated.

Last update: 2026-04-24 02:56:05 UTC


README

We compared this module with @amazeelabs/graphql-schema-test and found no reason to use it:

  • there was a lot of headache with the Domain module
  • tests ran with @amazeelabs/graphql-schema-test take almost same time

Drupal GraphQL Snapshot Testing

A Drush command that runs GraphQL queries against configured GraphQL servers and stores the results in snapshots.

Installation

composer require --dev amazeelabs/graphql_snapshot_test

Usage

drush help graphql:snapshot:test

Results can be altered from custom modules. See graphql_snapshot_test.api.php

Migration from @amazeelabs/graphql-schema-test

The package is designed to replace @amazeelabs/graphql-schema-test with minimum effort. But you'll have to rewrite all your masking code to PHP 😬

New snapshots should look very close to the old ones. Example:

Old/new snapshot comparison

Tip: Use --servers option if the servers execution order does not match to the old one.