1.0.6 • Published 6 years ago
@nikkij/jest-jsonshot v1.0.6
@nikkij/jest-JSONshot
Motivation
I like to use generate mocks for my unit tests from the output of my end-to-end tests. When data snapshots are serialized in a JSON format, it is more convenient to use when creating the mocks.
Usage
using a jest setup file:
// setup.js
require("@nikkij/jest-jsonshot")
inline testing:
// test.js
require("@nikkij/jest-jsonshot")
Typescript
Add the type definition for expect().toMatchJSONshot()
// global.d.ts
import("@nikkij/jest-jsonshot");
1.0.6
6 years ago
1.0.6-beta.1
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.4-beta.2
6 years ago
1.0.4-beta.1
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago