{"id":15314267,"url":"https://github.com/barelyhuman/uvu-inline-snapshot","last_synced_at":"2025-04-15T02:12:49.368Z","repository":{"id":197761956,"uuid":"699332432","full_name":"barelyhuman/uvu-inline-snapshot","owner":"barelyhuman","description":"Minimal Inline Snapshot utility for uvu/assert http://github.com/lukeed/uvu","archived":false,"fork":false,"pushed_at":"2024-08-09T06:52:22.000Z","size":203,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T02:12:40.710Z","etag":null,"topics":["inline","snapshot","snapshot-testing","testing","uvu"],"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":"2023-10-02T12:31:31.000Z","updated_at":"2025-01-14T19:32:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d51603d8-5158-47cd-bb3a-55bdb34ab850","html_url":"https://github.com/barelyhuman/uvu-inline-snapshot","commit_stats":null,"previous_names":["barelyhuman/uvu-inline-snapshot"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fuvu-inline-snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fuvu-inline-snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fuvu-inline-snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fuvu-inline-snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barelyhuman","download_url":"https://codeload.github.com/barelyhuman/uvu-inline-snapshot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991558,"owners_count":21194894,"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","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":["inline","snapshot","snapshot-testing","testing","uvu"],"created_at":"2024-10-01T08:44:54.890Z","updated_at":"2025-04-15T02:12:49.352Z","avatar_url":"https://github.com/barelyhuman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uvu-inline-snapshot\n\n\u003e Minimal Inline Snapshot utility for uvu/assert\n\n### Limitations \n- Not tested enough with Typescript to confirm that it works with it. \n\n### Installation\n\n```sh\nnpm i uvu uvu-inline-snapshot\n```\n\n### Usage\n\n```js\nconst { test } = require('uvu')\nconst { inlineSnapshot } = require('uvu-inline-snapshot')\n\nconst add = (x, y) =\u003e x + y\n\ntest('example 1', async () =\u003e {\n  await inlineSnapshot(add(1, 2), '')\n})\n\ntest.run()\n\n// --------------------\n// will be converted to\nconst { test } = require('uvu')\nconst { inlineSnapshot } = require('uvu-inline-snapshot')\n\nconst add = (x, y) =\u003e x + y\n\ntest('example 1', async () =\u003e {\n  await inlineSnapshot(add(1, 2), '3') // Filled for you\n})\n\ntest.run()\n```\n\nTo update multiple snapshots, just run the tests with `UVU_SNAPSHOTS=1` \n\n```sh\n; UVU_SNAPSHOTS=1 uvu \n```\n\n## License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fuvu-inline-snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarelyhuman%2Fuvu-inline-snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fuvu-inline-snapshot/lists"}