Skip to content

ota-meshi/test-snapshot

Repository files navigation

test-snapshot

A snapshot testing library similar to jest-snapshot.

🚀 Features

💿 Installation

npm install -D @ota-meshi/test-snapshot

📖 Usage

For example, when used with mocha:

import { expect } from "@ota-meshi/test-snapshot";

it("foo", () => {
  expect({ foo: "bar" }).toMatchSnapshot();
});

For example, when used with mocha and chai:

import { use, expect } from "chai"
import { chaiPlugin } from "@ota-meshi/test-snapshot/chai";

use(chaiPlugin);

it("foo", () => {
  expect({ foo: "bar" }).toMatchSnapshot();
});

About

A snapshot testing library similar to jest-snapshot.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy