{"library":"snapshot-diff","type":"library","category":null,"description":"snapshot-diff is a utility library for Jest that facilitates the creation of diff snapshots between two values, particularly useful for comparing states of React components. The current stable version is 0.10.0. The library's release cadence is tightly coupled with Jest's major releases, leading to frequent breaking changes primarily due to updates in its Jest peer dependencies. It offers both a direct `snapshotDiff` function and a custom Jest matcher, `toMatchDiffSnapshot`, to integrate seamlessly into Jest tests. A key differentiator is its ability to provide readable, Git-style diff output for complex data structures by leveraging Jest's serialization mechanisms and supporting custom serializers.","language":"javascript","status":"active","version":"0.10.0","tags":["javascript","typescript"],"install":[{"cmd":"npm install snapshot-diff","imports":["import snapshotDiff from 'snapshot-diff';","import { toMatchDiffSnapshot } from 'snapshot-diff';","import 'snapshot-diff/extend-expect';","import { getSnapshotDiffSerializer } from 'snapshot-diff';","import { defaultSerializers } from 'snapshot-diff';"]},{"cmd":"yarn add snapshot-diff","imports":[]},{"cmd":"pnpm add snapshot-diff","imports":[]}],"homepage":null,"github":"https://github.com/thymikee/snapshot-diff","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/snapshot-diff","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/snapshot-diff/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}