{"id":13451884,"url":"https://github.com/JosephEigenraam/docz-plugin-snapshots","last_synced_at":"2025-03-23T19:33:09.649Z","repository":{"id":57155869,"uuid":"144357074","full_name":"JosephEigenraam/docz-plugin-snapshots","owner":"JosephEigenraam","description":"A plugin for docz that creates jest snapshots for all documented component usages","archived":true,"fork":false,"pushed_at":"2018-08-16T10:25:05.000Z","size":75,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-10T15:06:53.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/JosephEigenraam.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}},"created_at":"2018-08-11T05:06:22.000Z","updated_at":"2023-07-29T10:38:44.000Z","dependencies_parsed_at":"2022-08-28T09:41:01.814Z","dependency_job_id":null,"html_url":"https://github.com/JosephEigenraam/docz-plugin-snapshots","commit_stats":null,"previous_names":["josephconradblack/docz-plugin-snapshots"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephEigenraam%2Fdocz-plugin-snapshots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephEigenraam%2Fdocz-plugin-snapshots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephEigenraam%2Fdocz-plugin-snapshots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephEigenraam%2Fdocz-plugin-snapshots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JosephEigenraam","download_url":"https://codeload.github.com/JosephEigenraam/docz-plugin-snapshots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245158747,"owners_count":20570241,"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":[],"created_at":"2024-07-31T07:01:05.716Z","updated_at":"2025-03-23T19:33:09.305Z","avatar_url":"https://github.com/JosephEigenraam.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# docz-plugin-snapshots\n\nA plugin for docz that creates jest snapshots for all documented component usages\n\n## Install\n\nAdd the docz-plugin-snapshots package to your project.\n\n```\nyarn add --dev docz-plugin-snapshots\n```\n\n## Usage\n\nAdd the jest-mdx-loader to your jest.config.js file\n\n```js\n/// jest.config.js\n\nmodule.exports = {\n  //...\n  transform: {\n    \"^.+\\\\.jsx?$\": \"babel-jest\",\n    \".mdx?$\": \"jest-mdx-loader\"\n  }\n  //...\n};\n```\n\nAdd a new test file and initialize the plugin\n\n```js\n/// index.test.js\n\nimport initDoczPluginSnapshots from \"docz-plugin-snapshots\";\ninitDoczPluginSnapshots(\"./\");\n```\n\n## Licence\n\nMIT © [Joseph Black](https://josephconradblack.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosephEigenraam%2Fdocz-plugin-snapshots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJosephEigenraam%2Fdocz-plugin-snapshots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosephEigenraam%2Fdocz-plugin-snapshots/lists"}