PHPackages                             amazeelabs/graphql\_snapshot\_test - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. amazeelabs/graphql\_snapshot\_test

ArchivedDrupal-drush[Testing &amp; Quality](/categories/testing)

amazeelabs/graphql\_snapshot\_test
==================================

Drush commands for GraphQL snapshot testing.

1.1.5(3y ago)02[1 PRs](https://github.com/AmazeeLabs/graphql_snapshot_test/pulls)PHP

Since Jan 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AmazeeLabs/graphql_snapshot_test)[ Packagist](https://packagist.org/packages/amazeelabs/graphql_snapshot_test)[ RSS](/packages/amazeelabs-graphql-snapshot-test/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

⚠️ DEPRECATED
=============

[](#️-deprecated)

We compared this module with [@amazeelabs/graphql-schema-test](https://www.npmjs.com/package/@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
===============================

[](#drupal-graphql-snapshot-testing)

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

Installation
------------

[](#installation)

```
composer require --dev amazeelabs/graphql_snapshot_test
```

Usage
-----

[](#usage)

```
drush help graphql:snapshot:test
```

Results can be altered from custom modules. See [graphql\_snapshot\_test.api.php](graphql_snapshot_test.api.php)

Migration from `@amazeelabs/graphql-schema-test`
------------------------------------------------

[](#migration-from-amazeelabsgraphql-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](docs/migration-example.png)](docs/migration-example.png)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

6

Last Release

1143d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d871bb148a82d7e6df9e4651bb313bdac853962dd6214c2b0a03f8d60985fb61?d=identicon)[Leksat](/maintainers/Leksat)

---

Top Contributors

[![Leksat](https://avatars.githubusercontent.com/u/989015?v=4)](https://github.com/Leksat "Leksat (1 commits)")

### Embed Badge

![Health badge](/badges/amazeelabs-graphql-snapshot-test/health.svg)

```
[![Health](https://phpackages.com/badges/amazeelabs-graphql-snapshot-test/health.svg)](https://phpackages.com/packages/amazeelabs-graphql-snapshot-test)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M678](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
