Skip to content

google/daguerreotype

Daguerreotype 📸

This is an experimental library not ready for public consumption. Please use at your own risk.

Daguerreotype is a modern JavaScript library for snapshot testing in JavaScript.

It is currently compatible with Mocha and provides customizable paths for configuration and snapshot output unlike other libraries.

Usage

To get started, install daguerreotype through npm (or whatever package manager you use):

npm i daguerreotype

Then in your tests, do

import {deepStrictEqualSnapshot} from 'daguerreotype';

describe(..., () => {
    it(..., async () => {
        const someData = ...;

        deepStrictEqualSnapshot(someData);
    })
})

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published