{"id":13769486,"url":"https://github.com/jomaxx/jest-large-snapshot-warning","last_synced_at":"2025-05-11T02:32:37.737Z","repository":{"id":34932105,"uuid":"192023869","full_name":"jomaxx/jest-large-snapshot-warning","owner":"jomaxx","description":"Add warnings to large snapshots!","archived":false,"fork":false,"pushed_at":"2023-01-04T00:41:23.000Z","size":874,"stargazers_count":2,"open_issues_count":13,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-01T19:49:23.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jest-large-snapshot-warning","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jomaxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-15T01:33:55.000Z","updated_at":"2020-12-07T08:22:23.000Z","dependencies_parsed_at":"2023-01-15T10:38:44.494Z","dependency_job_id":null,"html_url":"https://github.com/jomaxx/jest-large-snapshot-warning","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomaxx%2Fjest-large-snapshot-warning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomaxx%2Fjest-large-snapshot-warning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomaxx%2Fjest-large-snapshot-warning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomaxx%2Fjest-large-snapshot-warning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jomaxx","download_url":"https://codeload.github.com/jomaxx/jest-large-snapshot-warning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253507140,"owners_count":21919157,"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-08-03T17:00:26.968Z","updated_at":"2025-05-11T02:32:37.434Z","avatar_url":"https://github.com/jomaxx.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Snapshot"],"readme":"# jest-large-snapshot-warning\n\nAdd warnings to large snapshots!\n\n## Setup\n\n```bash\n# install\nyarn add --dev jest-large-snapshot-warning\n```\n\n```js\n// my.test.js\nimport \"jest-large-snapshot-warning\";\n\ntest(\"large snapshot\", () =\u003e {\n  expect(/* large object */).toMatchSnapshot();\n});\n```\n\n### setMaxSnapshotSize\n\nThe default max size is `50`.\n\n```js\n// my.test.js\nimport { setMaxSnapshotSize } \"jest-large-snapshot-warning\";\n\nsetMaxSnapshotSize(10);\n\ntest(\"large snapshot\", () =\u003e {\n  expect(/* large object */).toMatchSnapshot();\n});\n```\n\n### setupFiles\n\nTo setup a max snapshot size for all test suites, use the [setupFiles](https://jestjs.io/docs/en/configuration.html#setupfiles-array) option in your jest config.\n\n```js\n// setupTest.js\nimport { setMaxSnapshotSize } \"jest-large-snapshot-warning\";\n\nsetMaxSnapshotSize(10);\n```\n\n```json\n{\n  \"setupFiles\": [\"./setupTest.js\"]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomaxx%2Fjest-large-snapshot-warning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomaxx%2Fjest-large-snapshot-warning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomaxx%2Fjest-large-snapshot-warning/lists"}