1.0.6 • Published 5 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
5 years ago
1.0.6-beta.1
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.4-beta.2
5 years ago
1.0.4-beta.1
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago