{"id":19387672,"url":"https://github.com/haraka/test-fixtures","last_synced_at":"2026-04-02T17:54:35.552Z","repository":{"id":39332968,"uuid":"52387316","full_name":"haraka/test-fixtures","owner":"haraka","description":"Fixtures for testing Haraka and plugins","archived":false,"fork":false,"pushed_at":"2026-03-17T23:07:13.000Z","size":119,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-18T11:27:24.809Z","etag":null,"topics":["haraka","test-automation","testing"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/haraka-test-fixtures","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/haraka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-02-23T19:55:55.000Z","updated_at":"2026-03-17T23:06:38.000Z","dependencies_parsed_at":"2024-02-25T02:26:48.244Z","dependency_job_id":"406bbb69-6444-4b8f-8674-a852b8afa332","html_url":"https://github.com/haraka/test-fixtures","commit_stats":{"total_commits":67,"total_committers":7,"mean_commits":9.571428571428571,"dds":0.08955223880597019,"last_synced_commit":"2fc8d13fbf828c32d5507738bb90f474bca93f22"},"previous_names":["haraka/haraka-test-fixtures"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/haraka/test-fixtures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Ftest-fixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Ftest-fixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Ftest-fixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Ftest-fixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haraka","download_url":"https://codeload.github.com/haraka/test-fixtures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Ftest-fixtures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["haraka","test-automation","testing"],"created_at":"2024-11-10T10:10:06.942Z","updated_at":"2026-04-02T17:54:35.544Z","avatar_url":"https://github.com/haraka.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status][ci-img]][ci-url]\n[![CodeCov][cov-img]][cov-url]\n[![Qlty][qlty-img]][qlty-url]\n\n# haraka-test-fixtures\n\nFixtures for testing Haraka and plugins\n\n## Usage\n\n```js\nconst fixtures = require('haraka-test-fixtures')\n```\n\n### A common pattern\n\n```js\nbeforeEach(() =\u003e {\n  this.plugin = new fixtures.plugin('pluginName')\n\n  this.connection = fixtures.connection.createConnection()\n  this.connection.init_transaction()\n})\n\ndescribe('pluginName', () =\u003e {\n  it('registers', () =\u003e {\n    this.plugin.register()\n  })\n})\n```\n\n## Exports the following fixture types:\n\n- connection\n- line_socket\n- logger\n- plugin\n- [results](https://github.com/haraka/haraka-results)\n- stub\n- transaction\n- util_hmailitem\n\nThese fixtures are analogs of their like-named siblings in Haraka with varying levels of completeness. If there are functions necessary to enhance your ability to test, please do add them.\n\n[ci-img]: https://github.com/haraka/test-fixtures/actions/workflows/ci.yml/badge.svg\n[ci-url]: https://github.com/haraka/test-fixtures/actions/workflows/ci.yml\n[cov-img]: https://codecov.io/github/haraka/test-fixtures/graph/badge.svg?token=YmOC83OqCH\n[cov-url]: https://codecov.io/github/haraka/test-fixtures\n[qlty-img]: https://qlty.sh/gh/haraka/projects/haraka-test-fixtures/maintainability.svg\n[qlty-url]: https://qlty.sh/gh/haraka/projects/haraka-test-fixtures\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharaka%2Ftest-fixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharaka%2Ftest-fixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharaka%2Ftest-fixtures/lists"}