{"library":"snap-shot-it","type":"library","category":null,"description":"snap-shot-it is a snapshot testing utility designed for Mocha and other BDD-style JavaScript test runners. It provides a robust mechanism to capture the output of functions or data structures during test execution and compare them against previously saved snapshots, making it easier to track unintended changes. The current stable version is 7.9.10, released in late 2022, and its release cadence primarily focuses on dependency updates and minor bug fixes, indicating a maintenance-oriented development. A key differentiator is its approach of spying on the global `it` function to precisely determine test context, offering better reliability than static code parsing methods. It integrates `snap-shot-compare` for intelligent, human-readable diffs and supports a data-driven testing mode, which sets it apart from simpler snapshot solutions by offering more advanced testing patterns within the Mocha ecosystem.","language":"javascript","status":"maintenance","version":"7.9.10","tags":["javascript","bdd","mocha","snap-shot","snapshot","tdd","test","testing","typescript"],"install":[{"cmd":"npm install snap-shot-it","imports":["const snapshot = require('snap-shot-it')","import snapshot from 'snap-shot-it'"]},{"cmd":"yarn add snap-shot-it","imports":[]},{"cmd":"pnpm add snap-shot-it","imports":[]}],"homepage":null,"github":"https://github.com/bahmutov/snap-shot-it","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/snap-shot-it","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/snap-shot-it/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}