1.1.0 • Published 11 months ago

@ota-meshi/test-snapshot v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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();
});
1.1.0

11 months ago

1.0.1

1 year ago

1.0.0

1 year ago