{"id":15314220,"url":"https://github.com/barelyhuman/node-snapshot","last_synced_at":"2026-03-08T18:39:19.291Z","repository":{"id":248136709,"uuid":"827864618","full_name":"barelyhuman/node-snapshot","owner":"barelyhuman","description":"A minimal Jest like snapshot testing helper for node:test","archived":false,"fork":false,"pushed_at":"2025-03-04T18:15:20.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T01:57:49.733Z","etag":null,"topics":["node","snapshot","snapshot-testing","test","testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barelyhuman.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-12T14:44:00.000Z","updated_at":"2025-03-04T18:15:24.000Z","dependencies_parsed_at":"2024-07-12T16:56:34.926Z","dependency_job_id":"00ff8263-5353-4f85-9b1f-93260c2605e0","html_url":"https://github.com/barelyhuman/node-snapshot","commit_stats":null,"previous_names":["barelyhuman/node-snapshot"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/barelyhuman/node-snapshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fnode-snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fnode-snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fnode-snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fnode-snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barelyhuman","download_url":"https://codeload.github.com/barelyhuman/node-snapshot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fnode-snapshot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27574080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-07T02:00:07.896Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["node","snapshot","snapshot-testing","test","testing"],"created_at":"2024-10-01T08:44:47.151Z","updated_at":"2025-12-07T18:04:03.132Z","avatar_url":"https://github.com/barelyhuman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-snapshot\n\n\u003e A minimal Jest like snapshot testing helper for node:test\n\n\u003e [!NOTE]\n\u003e\n\u003e This library is now ESM ONLY (since v1.0.0), use v0 if you wish to stick to\n\u003e CJS\n\n\u003e [!NOTE]  \n\u003e The Library is under active development and might have bugs and issues, please\n\u003e report them at\n\u003e [barelyhuman/node-snapshot#issues](https://github.com/barelyhuman/node-snapshot/issues)\n\u003e to help mature the library\n\n\u003e [!IMPORTANT]  \n\u003e The author of the library is trying to be a full time open source maintainer\n\u003e and your support would be greatly appreciated. You can find out how by reading\n\u003e the following [reaper.is/supporters](https://reaper.is/supporters)\n\n### Installation\n\n```sh\n; npm install -D @barelyhuman/node-snapshot\n```\n\n### Usage\n\n```js\n// ESM\nimport { test } from 'node:test'\nimport { snapshot } from '@barelyhuman/node-snapshot'\n\ntest('foo', t =\u003e {\n  snapshot(t, 'bar')\n\n  t.test('foo bar', t =\u003e {\n    snapshot(t, [{ foo: 'bar' }])\n  })\n})\n```\n\n- Snapshots are stored at `\u003crootDir\u003e/snapshots` and should be checked into your\n  version control. This isn't configurable right now but will soon be.\n- Snapshots can be updated by setting `UPDATE_SNAPSHOTS` environment variable to\n  `1` before running the test suite\n\n```sh\n# example\nUPDATE_SNAPSHOTS=1 npm run test\n```\n\n### Links\n\n- [mcollina/snap](http://github.com/mcollina/snap) - Alternative to this package\n- [snapshot Testing](https://jestjs.io/docs/snapshot-testing) - If you wish to\n  learn more about snapshot testing\n\n### LICENSE\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fnode-snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarelyhuman%2Fnode-snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fnode-snapshot/lists"}