daguerreotype
v0.1.0
Published
A snapshot library for Node.js
Readme
Daguerreotype 📸
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 daguerreotypeThen in your tests, do
import {deepStrictEqualSnapshot} from 'daguerreotype';
describe(..., () => {
it(..., async () => {
const someData = ...;
deepStrictEqualSnapshot(someData);
})
})