{"library":"haraka-test-fixtures","type":"library","category":null,"description":"The `haraka-test-fixtures` package provides a comprehensive set of mock objects and utilities specifically designed for testing Haraka SMTP server plugins and core components. It enables developers to create isolated test environments by simulating key Haraka abstractions such as `Connection`, `Transaction`, `Plugin`, `Logger`, and `Results` objects without the overhead of running a full Haraka server. This allows for focused unit and integration testing of plugin logic. The current stable version is 1.4.1, released with bug fixes and dependency updates. Releases follow an ad-hoc schedule, primarily driven by maintenance requirements, synchronization with the main Haraka project, and dependency bumps. Its key differentiator lies in its deep integration and direct analogy to Haraka's internal architecture, providing tailor-made testing primitives that generic mocking libraries cannot easily replicate. It helps abstract away the complexities of Haraka's lifecycle for efficient plugin development and testing.","language":"javascript","status":"active","version":"1.4.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install haraka-test-fixtures","imports":["const fixtures = require('haraka-test-fixtures')","const { plugin } = require('haraka-test-fixtures');\n// or\nconst fixtures = require('haraka-test-fixtures');\nnew fixtures.plugin('my-plugin')","const { connection } = require('haraka-test-fixtures');\n// or\nconst fixtures = require('haraka-test-fixtures');\nfixtures.connection.createConnection()"]},{"cmd":"yarn add haraka-test-fixtures","imports":[]},{"cmd":"pnpm add haraka-test-fixtures","imports":[]}],"homepage":null,"github":"https://github.com/haraka/test-fixtures","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/haraka-test-fixtures","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/haraka-test-fixtures/compatibility"}}