Skip to content

snapshot

.snapshot()

Runs a positive snapshot test in its own stack frame.

Examples

What Failures Look Like

When the assertion fails, you’ll see a clear error message:

// This would fail:
expect(actual).to.equal(expected);