Registry / testing / spatie-pest-plugin-snapshots

spatie-pest-plugin-snapshots

JSON →
library2.3.1phppackagistunverified

A package for snapshot testing in Pest

composer require spatie/pest-plugin-snapshots
INSTALL
IMPORT
SIG · SPATIE-PEST-PLUGIN
S
spatie-pest-plugin-snapshots
testingphpv2.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Snapshot
use Spatie\PestPluginSnapshots\Snapshot;

Use snapshot testing in a Pest test.

use Spatie\PestPluginSnapshots\Snapshot; it('matches snapshot', function () { expect('some output')->toMatchSnapshot(); });
Debug
Known issues
gotchaRequires Pest PHP testing framework.
fix
Install pestphp/pest before using this plugin.
affects: >=2.0.0
Upgrade
Version history
2.3.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
spatie-pest-plugin-snapshots — pip install spatie-pest-plugin-snapshots · libregistry