seneca-error-test is an internal utility package primarily designed for testing error handling mechanisms within the Seneca microservices framework. Released at version 0.2.2, it explicitly states compatibility with Node.js 0.10.31 and Seneca 0.6.0. These are very old versions of both Node.js and Seneca, indicating that the package has not seen active development or maintenance for many years. Consequently, it is highly unlikely to be compatible with modern Node.js versions (v14+) or current stable releases of Seneca (v3+). Its release cadence is effectively zero, as it has remained at 0.2.2 since its initial publication. As an internal test utility, it offers minimal user-facing functionality beyond its specific testing purpose, serving more as a historical artifact or a reference for older Seneca implementations rather than a viable tool for contemporary projects. Its use in new projects is strongly discouraged due to potential compatibility issues and lack of security updates.
npm install seneca-error-testVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing a Seneca instance, loading the seneca-error-test plugin, and invoking a 'fail' command to catch an expected error.
Do not use this package in new projects or with modern environments. Consider creating a new test utility specific to your current Seneca version.
Migrate away from this package. If its functionality is required, reimplement it for your current Seneca setup.
Thoroughly test any integration with modern Seneca. Expect refactoring or complete replacement to be necessary.
Ensure your `seneca` package version matches the expectations of the plugin (Seneca 0.6.0 for this package). For modern Seneca, you cannot directly use this plugin without modification.
Ensure your project is configured for CommonJS if using old packages, or use a bundler that handles CJS to ESM conversion if necessary. For this package, directly `require()`ing it is the intended method.
Run `npm install seneca-error-test` or `yarn add seneca-error-test` to install it.