{"id":23413566,"url":"https://github.com/zumerlab/zumerbox-tests","last_synced_at":"2026-05-09T15:07:04.846Z","repository":{"id":228961810,"uuid":"775381239","full_name":"zumerlab/zumerbox-tests","owner":"zumerlab","description":"A zumerBox tool for unit and visual testing files","archived":false,"fork":false,"pushed_at":"2024-03-28T12:25:39.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T04:19:18.719Z","etag":null,"topics":["jest","testing-tools","unit-testing","visual-testing","zumerbox"],"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/zumerlab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-21T09:33:49.000Z","updated_at":"2024-03-26T16:04:46.000Z","dependencies_parsed_at":"2024-03-25T17:56:43.967Z","dependency_job_id":null,"html_url":"https://github.com/zumerlab/zumerbox-tests","commit_stats":null,"previous_names":["zumerlab/tinybox-test","zumerlab/zumerbox-tests"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumerlab%2Fzumerbox-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumerlab%2Fzumerbox-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumerlab%2Fzumerbox-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zumerlab%2Fzumerbox-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zumerlab","download_url":"https://codeload.github.com/zumerlab/zumerbox-tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980821,"owners_count":21027803,"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":["jest","testing-tools","unit-testing","visual-testing","zumerbox"],"created_at":"2024-12-22T19:38:10.743Z","updated_at":"2026-05-09T15:07:04.838Z","avatar_url":"https://github.com/zumerlab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @zumerbox/tests\n\n\u003e [!WARNING]\n\u003e **DEPRECATED.** This package is no longer maintained.\n\nThis tool simplifies the process of running Jest tests for your project, including visual tests with image snapshots. It provides a convenient way to execute Jest with custom configuration and setup files, allowing you to run tests with ease.\n\nVisual test are a convenient way to test UI. In this case, image snapshoots are compared to detect changes.\n\nRefer to the [ZumerBox bundle](https://github.com/zumerlab/zumerbox) for more information and tools.\n\n## Features\n\n- **Headless DOM** with jsdom\n- **Visual diff testing** with Puppeteer + pixelmatch\n- **Out of the box**: zero configuration required in the user’s project\n\n## Installation \u0026 Usage\n\nRun directly without prior installation:\n\n```bash\nnpx @zumerbox/tests\n```\n\nBy default, Mocha will discover test files matching `test/**/*.test.{js,ts,jsx,tsx}`.\n\n## Writing Tests\n\n### Unit / Logic Tests\n\n```js\n// test/math.test.js\nconst { expect } = require('chai');\n\ndescribe('Math Operations', () =\u003e {\n  it('should add numbers correctly', () =\u003e {\n    expect(1 + 2).to.equal(3);\n  });\n});\n```\n\n### Visual UI Tests\n\n```js\n// test/button.test.js\ndescribe('Button UI', () =\u003e {\n  it('matches the visual snapshot', async function() {\n    await this.page.setContent('\u003cbutton class=\"primary\"\u003eClick me\u003c/button\u003e');\n    await visualDiff(this.page, 'button-primary.png');\n  });\n});\n```\n\n- On the first run, a new snapshot `__snapshots__/button-primary.png` will be generated.\n- Subsequent runs compare against the baseline and, if discrepancies are found, output a diff image `*.diff.png` and fail the test.\n\n## Optional Flags\n\n- `--u`: Regenerate all baseline snapshots.\n\n\n```bash\nnpx @zumerbox/tests --update-snapshots\nnpx @zumerbox/tests --grep \"Button UI\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzumerlab%2Fzumerbox-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzumerlab%2Fzumerbox-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzumerlab%2Fzumerbox-tests/lists"}