Socket
Book a DemoInstallSign in
Socket

daguerreotype

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daguerreotype

A snapshot library for Node.js

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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 daguerreotype

Then in your tests, do

import {deepStrictEqualSnapshot} from 'daguerreotype';

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

        deepStrictEqualSnapshot(someData);
    })
})

Keywords

snapshot

FAQs

Package last updated on 29 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts